[MEDIUM] frontend: count the incoming connection earlier
authorWilly Tarreau <w@1wt.eu>
Sat, 5 Jun 2010 08:49:41 +0000 (10:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Jun 2010 08:53:19 +0000 (10:53 +0200)
commit24dcaf3450a7de4cb39b9c27dcaceacc0346a4bc
tree788cdae1b2bd7c82e89a0b796bec1b510caef295
parentb36b4244a2f6767f6096e9ab98184e6316fb35b4
[MEDIUM] frontend: count the incoming connection earlier

The frontend's connection was accounted for once the session was
instanciated. This was problematic because the early ACLs weren't
able to correctly account for the number of concurrent connections.
Now we count the connection once it is assigned to the frontend.
It also brings the nice advantage of being more symmetrical, because
the stream_sock's accept() does not have to account for that anymore,
only the session's accept() does.
src/session.c
src/stream_sock.c