]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] session: conn_retries was not always initialized
authorWilly Tarreau <w@1wt.eu>
Sun, 27 Mar 2011 17:16:56 +0000 (19:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 27 Mar 2011 17:16:56 +0000 (19:16 +0200)
commit0b3a4115431e47845f9a6dd1f75e000f88f75be7
tree0a75d98c06bf2e74b97e74b18f0aad97616a7811
parentd3cff72fb6b4c88a160a23907b800cd5c8dbff8b
[BUG] session: conn_retries was not always initialized

Johannes Smith reported some wrong retries count in logs associated with bad
requests. The cause was that the conn_retries field in the stream interface
was only initialized when attempting to connect, but is used when logging,
possibly with an uninitialized value holding last connection's conn_retries.
This could have been avoided by making use of a stream interface initializer.

This bug is 1.5-specific.
src/proto_http.c
src/session.c