Improved server accept log message
This commit is contained in:
parent
d1b58ab263
commit
bc80fe3580
@ -352,6 +352,7 @@ static BOOL freerdp_listener_check_fds(freerdp_listener* instance)
|
|||||||
|
|
||||||
if (peer_sockfd == -1)
|
if (peer_sockfd == -1)
|
||||||
{
|
{
|
||||||
|
char buffer[8192] = { 0 };
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
int wsa_error = WSAGetLastError();
|
int wsa_error = WSAGetLastError();
|
||||||
|
|
||||||
@ -365,7 +366,7 @@ static BOOL freerdp_listener_check_fds(freerdp_listener* instance)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
WLog_DBG(TAG, "accept");
|
WLog_WARN(TAG, "accept failed with %s", winpr_strerror(errno, buffer, sizeof(buffer)));
|
||||||
freerdp_peer_free(client);
|
freerdp_peer_free(client);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user