[BUG] increment server connections for each connect()
authorWilly Tarreau <w@1wt.eu>
Mon, 10 Dec 2007 14:05:42 +0000 (15:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 Jan 2008 14:43:38 +0000 (15:43 +0100)
commit98937b875798e10fac671d109355cde29d2a411a
treec949a58a758ffac441cf512ba6dbc643c223cdfe
parent51c9bde060bb2efbc5a103ca07d59914450da538
[BUG] increment server connections for each connect()

It was abnormal to see more connect errors than connect attempts.
This was caused by the fact that the server's connection count was
not incremented for failed connect() attempts.

Now the per-server connections are correctly incremented for each
connect() attempt. This includes the retries too. The number of
connections effectively served by a server will then be :

   srv->cum_sess - srv->errors - srv->warnings
src/backend.c
src/proto_http.c