p2p: reduce buffering on channels (#6609)

Having smaller buffers in each reactor/channel will mean that there will be fewer stale messages.
This commit is contained in:
Sam Kleinman
2021-06-24 20:38:35 +00:00
committed by GitHub
parent 10d174adcc
commit 917180dfd2
10 changed files with 36 additions and 43 deletions
+6 -6
View File
@@ -41,8 +41,8 @@ var (
Priority: 6,
SendQueueCapacity: 10,
RecvMessageCapacity: snapshotMsgSize,
MaxSendBytes: 400,
RecvBufferCapacity: 128,
MaxSendBytes: 400,
},
},
ChunkChannel: {
@@ -52,8 +52,8 @@ var (
Priority: 3,
SendQueueCapacity: 4,
RecvMessageCapacity: chunkMsgSize,
MaxSendBytes: 400,
RecvBufferCapacity: 128,
MaxSendBytes: 400,
},
},
LightBlockChannel: {
@@ -63,8 +63,8 @@ var (
Priority: 2,
SendQueueCapacity: 10,
RecvMessageCapacity: lightBlockMsgSize,
MaxSendBytes: 400,
RecvBufferCapacity: 128,
MaxSendBytes: 400,
},
},
}