Repository navigation
Conversation
Moran-k
commented
Apr 19, 2026
- Do not wait for data ack messages (we are covered by tcp)
- increase buffer size
do not wait for data ack messages
|
You say "we are covered by TCP", but the ack protection was introduced because of ws-hub and its queues, which could lose the message because of internal issues. TCP won't guarantee against it, it woul only guarantee delivery to ws-hub |
I agree, but the Init and termination messages still require ack, only the data messages are without ack now. Those ack messages on every data message are loading the channel, increasing memory and CPU usage, as we create a goroutine for each message to check if it goes ack. When sending large files over the wire, this causes massive memory usage and errors when the ack is delayed. I know this isn't ideal, and we're discussing how to improve the flow. |