httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vacelet, Manuel" <manuel.vace...@enalean.com>
Subject Re: [users@httpd] Last-Modified header overridden
Date Mon, 06 Jun 2016 15:00:42 GMT
On Mon, Jun 6, 2016 at 4:09 PM, Luca Toscano <toscano.luca@gmail.com> wrote:

>
> I was able to repro building httpd from 2.4.x branch and following your
> configuration files on github. I am almost sure that somewhere httpd sets
> the Last-Modified header translating "foo" to the first Jan 1970 date. I
> realized though that I didn't recall the real issue, since passing value
> not following the RFC can lead to inconsistencies, so I went back and
> checked the correspondence. Quoting:
>
> "Actually I wrote this snippet to highlight the behaviour (the original
> code sent the date in iso8601 instead of rfc1123) because it was more
> obvious.
> During my tests (this is extracted from an automated test suite), even
> after having converted dates to rfc1123, I continued to get some sparse
> errors. What I got is that the value I sent was sometimes slightly modified
> (a second or 2) depending on the machine load."
>
> So my understanding is that you would like to know why a Last-Modified
> header with a legitimate date/time set by a PHP app gets "delayed" by a
> couple of seconds from httpd, right?
>

Yes for sure, this is the primary issue.
However, the (undocumented) difference of behavior from one version to
another (2.2 -> 2.4 and more surprisingly from between two 2.4 versions) is
also in question here.
Even more strange, 2.4 built for other distrib doesn't highlight the
behaviour !


>
> The next step that I want to try is to add more logging in the C files
> where the Last-Modified header is set via apr_table_setn to narrow down the
> code responsible for this behavior (please everybody let me know if you
> have a better/smarter/etc idea :).
>
>
I built apache on my own with the same arguments from the redhat package
(and without any patches) and I got the error.
So, as far as I understand, this is the default behaviour of apache. The
question is now: why I don't get the bug on ubuntu or alpine ?

Manuel

Mime
View raw message