]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: unique_id: HTTP request counter must be unique!
authorWilly Tarreau <w@1wt.eu>
Tue, 13 Aug 2013 15:51:07 +0000 (17:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Aug 2013 15:52:20 +0000 (17:52 +0200)
commit9f09521f2d2deacfb4b1b10b23eb5525b9941c62
tree1755bae0fb51f3e9b1679e1d23cbcf74058bd58f
parent82ffa39bfd34e5680cb65cc0b7ef625c0a274856
BUG/MEDIUM: unique_id: HTTP request counter must be unique!

The HTTP request counter is incremented non atomically, which means that
many requests can log the same ID. Let's increment it when it is consumed
so that we avoid this case.

This bug was reported by Patrick Hemmer. It's 1.5-specific and does not
need to be backported.
include/types/global.h
src/log.c
src/proto_http.c