]> git.kaiwu.me - haproxy.git/commit
[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, 20 Jan 2008 22:43:37 +0000 (23:43 +0100)
commitcfa2a209aaf029c86ee8adbef4b6c130e3f8df15
treefc11a20cc2d7918d26a8acc9ef3176751d22b4b0
parent9aca958d3f638e4092a771cfb716c4d6b3ecea20
[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