Networking work-in-progress:

Temporarily increase sleep from 1ms to 100ms when waiting for outgoing socket buffer to empty.

Real fix is to rewrite using an outgoing message queue and OP_WRITE interest op.
This commit is contained in:
catbref 2022-03-19 13:21:11 +00:00
parent b0e6259073
commit 44fc0f367d

View File

@ -633,7 +633,7 @@ public class Peer {
* potentially interleaving them on-the-wire, causing checksum failures
* and connection loss.
*/
Thread.sleep(1L); //NOSONAR squid:S2276
Thread.sleep(100L); //NOSONAR squid:S2276
if (System.currentTimeMillis() - sendStart > timeout) {
// We've taken too long to send this message