On 15/01/24 at 20:31 +0100, Lucas Nussbaum wrote: > Package: squid > Version: 4.6-1+deb10u9 > Severity: important > > Hi, > > After updating to 4.6-1+deb10u9, squid returns empty responses for some > URLs. > > To reproduce: > - install squid 4.6-1+deb10u9 > - http_proxy=http://localhost:3128/ curl -v > http://cdimage.debian.org/cdimage/archive/ > => empty response (no content) > > Same issue with: > http://mirror.in2p3.fr/linux/centos-stream/9-stream/BaseOS/x86_64/iso/ > http://archive.ubuntu.com/ubuntu/dists/
Some more analysis using cdimage.debian.org: Some requests to cdimage.debian.org get a reply with Transfer-Encoding: chunked and no Content-Length, some get a reply without Transfer-Encoding and a Content-Length. [[ quick and dirty one-liner: for i in $(seq 1 10); do echo -e "GET /cdimage/ HTTP/1.1\r\nHost: cdimage.debian.org\r\nConnection: close\r\nUser-Agent: curl/7.64.0\r\n\r\n" | nc cdimage.debian.org 80 > resp11_$i.txt; done ]] Replies with a Content-Length get processed correctly. Replies without don't. (can be verified using nc -l -q 0 -p 8000 < resp11_2.txt and curl http://localhost:8000) This also means that it might be needed to perform several requests (with curl -H "Cache-Control: no-cache") to reproduce, even if for some reason the first request always get chunked. Lucas