Improved server accept log message

This commit is contained in:
akallabeth 2021-09-17 09:25:57 +02:00 committed by akallabeth
parent d1b58ab263
commit bc80fe3580

View File

@ -352,6 +352,7 @@ static BOOL freerdp_listener_check_fds(freerdp_listener* instance)
if (peer_sockfd == -1)
{
char buffer[8192] = { 0 };
#ifdef _WIN32
int wsa_error = WSAGetLastError();
@ -365,7 +366,7 @@ static BOOL freerdp_listener_check_fds(freerdp_listener* instance)
continue;
#endif
WLog_DBG(TAG, "accept");
WLog_WARN(TAG, "accept failed with %s", winpr_strerror(errno, buffer, sizeof(buffer)));
freerdp_peer_free(client);
return FALSE;
}