<div dir="ltr">Hi Leon,<div><br></div><div>Why not just up the timeout value? Usually, you want to keep the keep-alive as it's much more efficient.</div><div><br></div><div>Cheers,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Sat, Nov 11, 2017 at 9:48 PM, <span dir="ltr"><<a href="mailto:info+varnish@shee.org" target="_blank">info+varnish@shee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was observing a behavior of a PHP script on one backend server that got executed/requested<br>
twice (but not by the client/browser).<br>
<br>
The plain script just processes data and only outputs a response until its done. The observed<br>
behavior is; when first_byte_timeout passes but the script is still processing data, the varnish<br>
node answers with an 503 and the script gets listed twice in the webserver process list. So, either<br>
it gets requested on this event again or the TCP connection close triggers an new execution. In any<br>
case its a bug and because of missing resources to dive into a more deeper analyses, I just disabled<br>
the enabled keep-alive option of the backend webserver (apache/httpd). The results: it helped to avoid<br>
a further execution of the script.<br>
<br>
The question is: What is the best practice to configure the backend webservers? Do you keep the<br>
keep-alive option enabled or not?<br>
<br>
I'd appreciate hearing your suggestions.<br>
<br>
Leon<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br>
</blockquote></div><br></div>