]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: session: enable the conn_session_update() callback
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2012 15:42:13 +0000 (17:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2012 18:30:38 +0000 (20:30 +0200)
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.

src/session.c

index 1d5514e3d52b026aadb2b2f1857c0b373cea8ba5..ba074c8cc39b74140c479ef7c9b5d8411871314a 100644 (file)
@@ -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;
        }