commit | 6db06d3870ad4574414958574f1b5cf7a3f25997 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Aug 19 11:14:11 2009 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Aug 19 11:29:44 2009 +0200 |
tree | c8a925b9b55ed4bf082f50ca4933f7e8b2dbb84d | |
parent | d6d06909dae55bd594f5a9d6bf54dad04eae382f [diff] |
[MEDIUM] remove TCP_CORK and make use of MSG_MORE instead send() supports the MSG_MORE flag on Linux, which does the same as TCP_CORK except that we don't have to remove TCP_NODELAY before and we don't need any syscall to set/remove it. This can save up to 4 syscalls around a send() (two for setting it, two for removing it), and it's much cleaner since it is not persistent. So make use of it instead.