https://bz.apache.org/bugzilla/show_bug.cgi?id=65159
Bug ID: 65159
Summary: mod_unique_id generates non-unique ids
Product: Apache httpd-2
Version: 2.4.46
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_unique_id
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 37746
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37746&action=edit
per-thread counter for mod_unique_id.c
mod_unique_id sometimes generates the same id for different requests.
We observed this behaviour about once every 5'000'000 requests (rough estimate)
under an average load of ~10'000 requests/s. All requests are HTTP/1.1
requests.
The supplied patch addresses this problem by using a per-thread counter.
Using this patch, we were no longer able to reproduce the issue.
Note that the patch is not compatible with Windows and thus only serves as a
proof of concept.
Alternatively, using atomic operations on the counter would likely solve the
problem too.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]