]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG: tcp: option nolinger does not work on backends
authorWilly Tarreau <w@1wt.eu>
Wed, 30 Nov 2011 17:02:24 +0000 (18:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 30 Nov 2011 17:06:23 +0000 (18:06 +0100)
commitf6f8225390c8b9b15fcc53f6736b09a7e4aeefca
tree38220e57eab21c49b16ce08473eae1d6b2419876
parent19ae56b2b62c3fb591027f5cddf21795aa630a04
BUG: tcp: option nolinger does not work on backends

Daniel Rankov reported that "option nolinger" is inefficient on backends.
The reason is that it is set on the file descriptor only, which does not
prevent haproxy from performing a clean shutdown() before closing. We must
set the flag on the stream_interface instead if we want an RST to be emitted
upon active close.
src/proto_tcp.c