]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] stream_sock: don't close prematurely when nolinger is set
authorWilly Tarreau <w@1wt.eu>
Sun, 28 Jun 2009 09:09:07 +0000 (11:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Jun 2009 09:09:07 +0000 (11:09 +0200)
commit5d707e1aaa4498d6eef9c0fd174240c3a7bdf020
tree8dd8dd0c7672fbcf271c62721699312f859be02a
parent5d01a63b7862235fdd3119cb29d5a0cfd04edb91
[MEDIUM] stream_sock: don't close prematurely when nolinger is set

When the nolinger option is used, we must not close too fast because
some data might be left unsent. Instead we must proceed with a normal
shutdown first, then a close. Also, we want to avoid merging FIN with
the last segment if nolinger is set, because if that one gets lost,
there is no chance for it to be retransmitted.
include/types/fd.h
src/client.c
src/proto_tcp.c
src/stream_sock.c