]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] stream_interface: added a DISconnected state between CON/EST and CLO
authorWilly Tarreau <w@1wt.eu>
Sun, 23 Nov 2008 16:23:07 +0000 (17:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Nov 2008 16:23:07 +0000 (17:23 +0100)
commit74ab2ac7b0aaf7f96afd063c6e4f8a2f3653155b
tree5dc499bc71bce9891bdfb46c412208e0f6a92f5b
parent4351b3a4ca01919a648f200ad1a456ac86ec8cfe
[MEDIUM] stream_interface: added a DISconnected state between CON/EST and CLO

There were rare situations where it was not easy to detect that a failed
session attempt had occurred and needed some server cleanup. In particular,
client aborts sometimes lead to session leaks on the server side.

A new state "SI_ST_DIS" (disconnected) has been introduced for this. When
a session has been closed at a stream interface but the server cleanup has
not occurred, this state is entered instead of CLO. The cleanup is then
performed there and the state goes to CLO.

A new diagram has been added to show possible stream_interface state
transitions that can occur in a stream-sock. It makes debugging easier.
doc/internals/stream-sock-states.fig [new file with mode: 0644]
include/types/stream_interface.h
src/proto_http.c
src/stream_sock.c