Bug 55573 - FileETag needs MTimeSeconds, MTime with granularity of 1 second
Summary: FileETag needs MTimeSeconds, MTime with granularity of 1 second
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.6
Hardware: All Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-19 21:15 UTC by Alain Williams
Modified: 2013-09-19 21:15 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alain Williams 2013-09-19 21:15:50 UTC
MTime will generate a time with micosecond accuracy if the file system supports it. This can cause problems of coherence between machines where the copy mechanism is not more accurate than 1 second.

This could be fixed if FileETag had an option MTimeSeconds that produced MTime with a 1 second granularity.

The fix is not hard and would involve a few lines in:

ap_make_etag() in http_etag.c

set_etag_bits() in core.c