forked from Qortal/qortal
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:
parent
b0e6259073
commit
44fc0f367d
@ -633,7 +633,7 @@ public class Peer {
|
|||||||
* potentially interleaving them on-the-wire, causing checksum failures
|
* potentially interleaving them on-the-wire, causing checksum failures
|
||||||
* and connection loss.
|
* and connection loss.
|
||||||
*/
|
*/
|
||||||
Thread.sleep(1L); //NOSONAR squid:S2276
|
Thread.sleep(100L); //NOSONAR squid:S2276
|
||||||
|
|
||||||
if (System.currentTimeMillis() - sendStart > timeout) {
|
if (System.currentTimeMillis() - sendStart > timeout) {
|
||||||
// We've taken too long to send this message
|
// We've taken too long to send this message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user