[PATCH 2/4] httpd: Don't add Date header to response

Bernd Petrovitsch bernd at petrovitsch.priv.at
Mon Aug 31 08:25:11 UTC 2020


Hi all!

On Mon, 2020-08-31 at 09:53 +0200, Guillermo Rodriguez Garcia wrote:
[...]
> El sáb., 29 ago. 2020 a las 21:37, Sergey Ponomarev
> (<stokito at gmail.com>) escribió:
> > > I have seen clients set the local date from there when ntp was not available.
> > 
> > I'm just curious, could you please provide more details. What was the type of clients? Embedded devices or something else.
> 
> Embedded devices.

Perhaps it makes sense to check which is the smallest
Only-NTP-Client implementation.

> > Why wasn't ntp available for them? How often does this happen in the wild?
> 
> Not sure. Some examples:
> 
> https://www.snbforums.com/threads/ntp-blocked-alternatives-to-ntpd-for-updating-time.46541/page-3#post-404882
> https://askubuntu.com/questions/1035525/set-date-and-time-from-http-header-in-router-with-curl-or-wget

There's a lot of unnecessary fork+exec in these (so-called) "solutions" (and
in the thread above also).
fork+exec is pretty heavy weight and slow on average/typical embedded devices.

And thus it's not really that exact (which may be no issue - dependeing
on the application).

I haven't tried but most - if not all - can be easily replaced with "pure dash".

[...]
> But clients that you don't control may just assume that the Date
> header is present (since it is mandated by RFC2616) and disabling this
> would break them.

Well, if the header is required by a standard ....

MfG,
	Bernd
-- 
Bernd Petrovitsch                  Email : bernd at petrovitsch.priv.at
There is no cloud, just other people computers. - FSFE
                     LUGA : http://www.luga.at




More information about the busybox mailing list