]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] stream_sock: add SI_FL_NOLINGER for faster close
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Dec 2009 13:36:34 +0000 (14:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Dec 2009 13:36:34 +0000 (14:36 +0100)
commit4c283dce4b37472d16dfcb7215710c194365f182
tree88d7494fa794995927fc6986f59cf43298919dbe
parent82eeaf2fae39ab7eeeac5d1f29e964bf0168c04f
[MINOR] stream_sock: add SI_FL_NOLINGER for faster close

This new flag may be set by any user on a stream interface to tell
the underlying protocol that there is no need for lingering on the
socket since we know the other side either received everything or
does not care about what we sent.

This will typically be used with forced server close in HTTP mode,
where we want to quickly close a server connection after receiving
its response. Otherwise the system would prevent us from reusing
the same port for some time.
include/types/stream_interface.h
src/stream_sock.c