OpenBSD/src 107P13fusr.sbin/httpd server.c

   httpd(8) sent a 408 response every time a connection request timeout
   was reached. This is not what other servers are doing, it leads to
   ugly log messages and might confuse some clients.
   benno@ analyzed that the correct behavior is (probably) to send a 408
   when we are in the middle of receiving headers and time out there and
   just close the connection in all other cases.
   In particular, if a connection gets opened and no request is received
   at all just close the connection. If a connection is set to keep-alive
   and a request was handled and no further request is coming in just
   close the connection. The later is the usual cause for spurious log
   messages and client confusion.

   Reported over the years by many.
   Input, explanations and OK benno
VersionDeltaFile
1.120+5-2usr.sbin/httpd/server.c
+5-21 files

UnifiedSplitRaw