I want to get intact response

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

I want to get intact response

Dominic Kim
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?

Thanks in advance.
Dominic

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: I want to get intact response

Amos Jeffries
Administrator
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
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users