Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What would client receive through Squid when request timeout after it had received a header "200 OK"

Tags:

http

proxy

squid

As I know, squid would send a 504 gateway timeout when request timeout. But what if the client has already received a response header 200 ok. I mean when the response data is sent back in chunked encoding.

For example: header "200 ok" body part "a" body part "b" body part "c". After receiving "200 ok" and "a", request timeout happen, what would squid do this time, would it send a 504 gateway timeout back to the client ? If so, can the client received this header "504 gateway timeout" since it has already received a header "200 ok"

like image 418
Alexis Avatar asked Feb 25 '14 06:02

Alexis


1 Answers

If the connection times out mid way through the request, you will not get a 504 error.

like image 141
remudada Avatar answered Nov 07 '22 20:11

remudada