[MEDIUM] session: finish session establishment sequence in with I/O handlers
authorWilly Tarreau <w@1wt.eu>
Mon, 31 May 2010 09:57:51 +0000 (11:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Jun 2010 08:53:14 +0000 (10:53 +0200)
commit85e7d00a708f24b925bffc62ef5bd5584caf034c
tree30d9c5aef8cd351364de9f6ce08d718b500c5cde
parentace495e46816d40862ad0ba6b9619ac53b5c9449
[MEDIUM] session: finish session establishment sequence in with I/O handlers

Calling sess_establish() upon a successful connect() was essential, but
it was not clearly stated whether it was necessary for an access to an
I/O handler or not. While it would be desired, having it automatically
add the response analyzers is quite a problem, and it breaks HTTP stats.

The solution is thus not to call it for now and to perform the few response
initializations as needed.

For the long term, we need to find a way to specify the analyzers to install
during a stream_int_register_handler() if any.
src/session.c