Bug 36269 - UNIQUE_ID documented as 19 characters; actually 24.
Summary: UNIQUE_ID documented as 19 characters; actually 24.
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_unique_id (show other bugs)
Version: 2.5-HEAD
Hardware: All All
: P3 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2005-08-19 04:13 UTC by Alex Eulenberg
Modified: 2010-07-31 15:58 UTC (History)
1 user (show)



Attachments
document fix againt trunk (2.25 KB, patch)
2008-05-31 10:23 UTC, Takashi Sato
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Eulenberg 2005-08-19 04:13:24 UTC
Documentation and source comments say that the UNIQUE_ID environment variable is
a 19-character string (112-bit unique_id_rec struct encodes to 19 characters).
This was true with mod_unique_id.c prior to revision 83789 (checked in Aug 26,
1999). With that revision, a 32-bit thread_index was added to struct
unique_id_rec. As a result, the UNIQUE_ID environment variable now has a length
of 24 characters (144 bit unique_id_rec struct encodes to 24 characters).

Note that the 1.3 branch includes a thread identifier only if the preprocessor
variable MULTITHREAD is defined.

The 2.x documentation notes that the 19-character UNIQUE_ID "can be made longer"
to support multithreaded systems, even though this extension is now built into
the base code: UNIQUE_ID will be 24 characters long and include a thread index,
regardless of whether MULTITHREAD is defined.

Files that need to be changed:

modules/metadata/mod_unique_id.c
docs/manual/mod/mod_unique_id.html
Comment 1 Takashi Sato 2008-05-31 10:23:14 UTC
Created attachment 22045 [details]
document fix againt trunk

I read mod_unique_id.c and I think the comment should not modified.
I just modified the document using my humble English.
Comment 2 Stefan Fritsch 2010-07-31 15:58:12 UTC
commited in r981084