[MEDIUM] remove TCP_CORK and make use of MSG_MORE instead
authorWilly Tarreau <w@1wt.eu>
Wed, 19 Aug 2009 09:14:11 +0000 (11:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Aug 2009 09:29:44 +0000 (11:29 +0200)
commit6db06d3870ad4574414958574f1b5cf7a3f25997
treec8a925b9b55ed4bf082f50ca4933f7e8b2dbb84d
parentd6d06909dae55bd594f5a9d6bf54dad04eae382f
[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.
include/common/compat.h
include/types/fd.h
src/stream_sock.c