V4.1 HTTP/1.0 responses without Content-Length header results in empty response

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Dec 9 12:12:41 CET 2015


--------
In message <56680894.80904 at Berlinonline.de>, Tom Anheyer writes:

>An old perl LWP script uses HTTP/1.0 posts to an apache backend. The 
>generated backend response has no Content-Length header. Varnish 4.1.0 
>doesn't read the body (got a read error) and delivers a "Content-Length: 0"
>response back to the script. I know - http/1.0 its old and 
>should/must be avoided and the problems are gone after updating the 
>script to use http/1.1.

Please capture the varnishlog output so we can see exactly what
happens.

-- 
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-misc mailing list