On 17/05/17 14:29, Dominic Kim wrote:
I am quite a newbie to Squid proxy.
I am using it with default configuration by running this:
|docker run --name squid -d --publish 3128:3128 sameersbn/squid:3.3.8-23|
When I connect to backend server via squid, if backend server is not
ready yet, squid get connection refused error or other connection error.
But squid always returns 503 service unavailable only.
Is there any option to get intact response(connection refused or
failed) from the backend server via squid?
If the backend is producing an HTTP response Squid delivers it. The
exception being certain HTTP responses that indicate Squid should retry,
in which case Squid does that retry and whatever happens on that gets
delivered.
Connection Refused/Failed are control messages from the network
infrastructure to Squid indicating that TCP SYN failed. There is no
backend HTTP response when that happens, so Squid itself generates the
503 to tell the client what happened. But if there are alternative
servers the request can go to they will be attempted first.
PS. Squid-3.3 is very outdated, please look into upgrading to a
currently supported release. As of this writing those are 3.5.x or 4.x
series.
Amos
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users