[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] libmicrohttpd and date
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] libmicrohttpd and date |
Date: |
Mon, 21 Nov 2011 15:50:34 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111010 Icedove/3.1.15 |
Dear Kendrick,
I see your point, and after re-reading the respective standard it is
clear that for systems without a clock it is actually permitted to
exclude the DATE header. Now, I don't think this should be done via
configure -- wouldn't a flag given to MHD_start_daemon do just as well?
(addition of 'MHD_SUPPRESS_DATE_NO_CLOCK' to 'enum MHD_FLAG')?
Please let me know, this should be a tiny patch...
Happy hacking,
-Christian
On 11/21/2011 03:38 PM, Kendrick Hamilton wrote:
Christian,
Thank you for making libmicrohttpd. It has proven to be very useful
to us.
We do have one issue (that I have worked around). Our embedded
system runs Linux based on uClibc. When I run configure on the
library, it detects correctly the time and date functions from uClibc.
The catch is our processor does not have a battery backed up real time
clock. When the unit powers up, it thinks the date is January 1st,
1970. libmicrohttpd very helpfully adds the MHD_HTTP_HEADER_DATE to
responses. Since the system time is wrong, this value is wrong and it
mucks up caching.
It would be nice if you had an option for the ./configure to tell
the library to build for systems that don't know the time and date.
This may be useful for other embedded systems people.
Thank You
Kendrick Hamilton
- Re: [libmicrohttpd] libmicrohttpd and date,
Christian Grothoff <=