Changes between Initial Version and Version 11 of Ticket #619
- Timestamp:
- 01/25/18 05:18:46 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #619
-
Property
Priority
changed from
major
tocritical
-
Property
Priority
changed from
-
Ticket #619 – Description
initial v11 5 5 It would be better to only enable {{{TCP_NODELAY}}} when aggregating packets is not helping: when we have no more data to send or when the output buffer is full. As per: [http://stackoverflow.com/questions/855544/is-there-a-way-to-flush-a-posix-socket Is there a way to flush a POSIX socket?] and this answer: 6 6 ''What I do is enable Nagle, write as many bytes (using non-blocking I/O) as I can to the socket (i.e. until I run out of bytes to send, or the send() call returns EWOULDBLOCK, whichever comes first), and then disable Nagle again. This seems to work well (i.e. I get low latency AND full-size packets where possible) '' 7 8 Good read: [https://eklitzke.org/the-caveats-of-tcp-nodelay The Caveats of TCP_NODELAY]