TCP RST in varnish reply

David Martínez Moreno ender at tuenti.com
Fri Sep 11 18:40:55 CEST 2009


El Martes, 8 de Septiembre de 2009, Carsten Ranfeld escribió:
> Hello,
> 
> we use varnish at a customer's site for about 2 weeks and it sped up
> delivery performance a lot. Although we experience some problems,
> including the following:
> 
> A HTTP POST request is made. For the respective URL part in vcl_recv()
> as well as in vcl_fetch() we configured a pass explicitly to circumvent
> any caching. So what happens?
> 
> 1. the client sends its request to varnish
> 2. varnish passes the request to one of two backends
> 3. the backend replies
> 4. varnish replies to the client - and here the problem occurs - in the
> middle of the HTTP response the TCP connection is reset by varnish (or
> the machine). So content is not delivered fully. varnish log doesn't
> show any errors. Tests using different clients show a comparable
> behavior - TCP RST and partial delivered content, just the size of the
> content delivered differs.
> 
> 
> 
> Did anyone experience a similar problem? I searched through
> documentation, mailing lists and Google. Unfortunately not a helpful
> page was found.
> 
> Here the important configuration parts:
> 
> sub vcl_recv {
> 
>     # just to make sure, we always pass any POST requests
>     if (req.request != "GET" && req.request != "HEAD") {
>         /* We only deal with GET and HEAD by default */
>         pass;
>     }
> 
>     if (req.url !~ "^/(foo|bar|_em_cms)") {
>         lookup;
>     }
> }
> sub vcl_fetch {
>     if (req.url ~ "^/_em_cms/") {
>         pass;
>     }
> }
> 
> Regards and thanks in advance
> Carsten

	Hello, Carsten, can you run and post the following in the proxy?

sysctl -a|grep tw

	Do you have any other sysctl setting altered from vanilla kernel?

	Best regards,


		Ender.
-- 
I am a married potato! I am a married potato!
		-- Mr. Potato (Toy Story 2).
--
Responsable de sistemas
tuenti.com


More information about the varnish-misc mailing list