3 ms·
Interesting on the corking stuff. I looked at this a long time ago (http://baus.net/on-tcp_cork/ http://baus.net/on-tcp_cork/) and found it could make a signifi
by cmbaus 13y ago
Interesting on the corking stuff. I looked at this a long time ago (http://baus.net/on-tcp_cork/ http://baus.net/on-tcp_cork/) and found it could make a significant difference for event driven applications.
- justincormack 13y agoThey arent actually using TCP_CORK though (its not portable), they are just constructing a cork-like behaviour, using writev to write all the parts at once.
- cmbaus 13y agoUnderstood. It certainly is better to coalesce data with writev() than to use TCP_CORK. BTW, from my link: "If you need to write multiple buffers that are currently in memory you should prefer the gather function writev() before considering TCP_CORK with multiple calls to write()."