From: Willy Tarreau Date: Fri, 12 Oct 2012 15:42:13 +0000 (+0200) Subject: BUG/MEDIUM: session: enable the conn_session_update() callback X-Git-Tag: v1.5-dev13~157 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91083f5c8fa5b0ae257d9c14e4b1d6b3fbbf77ab;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: session: enable the conn_session_update() callback This callback was introduced by commit 9683e9a0 but never enabled because the CO_FL_WAKE_DATA flag was not set. The result is that this function is never called when an SSL handshake fails, so the connection is only closed on timeout. --- diff --git a/src/session.c b/src/session.c index 1d5514e3d5..ba074c8cc3 100644 --- a/src/session.c +++ b/src/session.c @@ -199,7 +199,7 @@ int session_accept(struct listener *l, int cfd, struct sockaddr_storage *addr) t->process = expire_mini_session; t->expire = tick_add_ifset(now_ms, p->timeout.client); task_queue(t); - s->si[0].conn.flags |= CO_FL_INIT_DATA; + s->si[0].conn.flags |= CO_FL_INIT_DATA | CO_FL_WAKE_DATA; return 1; }