mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[core,transport] properly log failure reason retries exceeded
This commit is contained in:
@@ -676,6 +676,8 @@ static void transport_bio_error_log(rdpTransport* transport, LPCSTR biofunc, BIO
|
||||
if (ERR_peek_error() == 0)
|
||||
{
|
||||
const char* fmt = "%s returned a system error %d: %s";
|
||||
if (saveerrno == 0)
|
||||
fmt = "%s retries exceeded";
|
||||
WLog_PrintMessage(transport->log, WLOG_MESSAGE_TEXT, level, line, file, func, fmt, biofunc,
|
||||
saveerrno, strerror(saveerrno));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user