[squid-users] When connection closed when trying connect some urls
Alex Rousskov
rousskov at measurement-factory.com
Mon Oct 26 15:31:06 UTC 2020
On 10/26/20 10:40 AM, Ben Goz wrote:
> I saw that this question was asked several times, but I didn't get an
> answer that solves the problem.
> This is the squidclient prompet I get:
> x at x:~$ squidclient -v https://discountbank.co.il
> Request:
> GET https://discountbank.co.il HTTP/1.0
> Host: discountbank.co.il <http://discountbank.co.il>
> User-Agent: squidclient/3.5.27
> Accept: */*
> Connection: close
I am not sure what the actual question here is, but, AFAICT, squidclient
never submits more than one HTTP request and, hence, squidclient always
closes the connection after the first transaction.
You can control the value of the HTTP Connection header sent by
squidclient using the -k command line option. Again, regardless of that
option, squidclient will naturally close the connection after receiving
the response. My guess is that the command line option was added for
(Squid) testing purposes; it has no practical use beyond that very
limited scope.
HTH,
Alex.
More information about the squid-users
mailing list