[Varnish] #1783: POST with empty body and absent content-length returns 503

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Sep 3 19:01:46 CEST 2015


--------
In message <066.57f8aef08e7d1b56411d15f83d8d33a1 at varnish-cache.org>, "Varnish" 
writes:

> OK, you're the expert so I'll take your word for it. But then why not just
> reject the request? Why is there a pause, and why send the request to the
> backend and report a backend error. It's not a backend error.

The pause is there because if it had been a HTTP/1.0 the body could
have followed without Content-Length/Transfer-Encoding and be terminated
by the client closing the socket.

Doing that fall-back is probably overdoing it, if the client explicitly
sent a HTTP/1.1 header.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-bugs mailing list