mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 20:19:34 +00:00
abstract_tcp_server2: fix send queue limit warning spam
When the send queue limit is reached, it is likely to not drain any time soon. If we call close on the connection, it will stay alive, waiting for the queue to drain before actually closing, and will hit that check again and again. Since the queue size limit is the reason we're closing in the first place, we call shutdown directly.
This commit is contained in:
parent
6bca9a8ef4
commit
3102feb56c
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ PRAGMA_WARNING_DISABLE_VS(4355)
|
|||
if (retry > retry_limit) {
|
||||
_erro("send que size is more than ABSTRACT_SERVER_SEND_QUE_MAX_COUNT(" << ABSTRACT_SERVER_SEND_QUE_MAX_COUNT << "), shutting down connection");
|
||||
// _dbg1_c("net/sleep", "send que size is more than ABSTRACT_SERVER_SEND_QUE_MAX_COUNT(" << ABSTRACT_SERVER_SEND_QUE_MAX_COUNT << "), shutting down connection");
|
||||
close();
|
||||
shutdown();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue