3 ms·
Applications (at least on linux) could call setsockopt(fd, TCP_CORK, 0) // uncork setsockopt(fd, TCP_CORK, 1) // cork after every logical block (request/m
by sly010 6y ago
Applications (at least on linux) could call
setsockopt(fd, TCP_CORK, 0) // uncork
setsockopt(fd, TCP_CORK, 1) // cork
after every logical block (request/message/transaction/etc) to get the best of both worlds.
Unkorking always releases what's in the buffer. (edited for formatting)