<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Guillaume, <div class=""><br class=""></div><div class="">Thanks for your support.</div><div class=""><br class=""></div><div class="">This is the output of "varnishadm param.show | grep timeout” command.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">backend_idle_timeout 60.000 [seconds] (default)</div><div class="">between_bytes_timeout 60.000 [seconds] (default)</div><div class="">cli_timeout 60.000 [seconds] (default)</div><div class="">connect_timeout 3.500 [seconds] (default)</div><div class="">first_byte_timeout 60.000 [seconds] (default)</div><div class="">idle_send_timeout 60.000 [seconds] (default)</div><div class="">pipe_timeout 60.000 [seconds] (default)</div><div class="">send_timeout 600.000 [seconds] (default)</div><div class="">thread_pool_timeout 300.000 [seconds] (default)</div><div class="">timeout_idle 5.000 [seconds] (default)</div><div class="">timeout_linger 0.050 [seconds] (default)</div></div><div class=""><br class=""></div><div class="">send_timeout seems to be configured at 600s…</div><div class=""><br class=""></div><div class="">Let me know.</div><div class=""><br class=""></div><div class="">Thanks in advance</div><div class="">D</div><div class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="" style="orphans: 2; widows: 2;"><font color="#d5383b" face="HelveticaNeue-Medium" class="" style="font-size: 14px;">Daniele Piaggesi</font></div><div class="" style="orphans: 2; widows: 2;"><div class=""><br class=""></div><div class=""><font face="HelveticaNeue-Light" class=""><font color="#d5383b" class="">Mobile</font><font color="#c8c8c8" class="">:</font> +39 393 880 78 50</font></div><div class=""><font face="HelveticaNeue-Light" class=""><font color="#d5383b" class="">Skype:</font> g0blin79</font></div><div class=""><font color="#d5383b" class="" style="font-family: HelveticaNeue-Light;">E-mail:</font><span class="" style="font-family: HelveticaNeue-Light;"> <a href="mailto:daniele.piaggesi@bmeme.com" class="">daniele.piaggesi@bmeme.com</a></span></div><div class=""><font face="HelveticaNeue-Light" color="#929292" class="">------------------------------------------</font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">Bonsaimeme S.r.l.</font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">Via del Porto Fluviale, 9</font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">00154 Roma - Italy</font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class=""><br class=""></font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">Phone: +39 06 98 26 04 39 </font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">Fax: +39 06 94 81 02 03</font></div><div class=""><font face="HelveticaNeue-Light" class=""><font color="#929292" class="">------------------------------------------</font>-</font></div><div class=""><font face="HelveticaNeue-Light" color="#000003" size="1" class=""><a href="http://bmeme.com" class="">bmeme.com</a></font></div></div><div class="" style="orphans: 2; widows: 2;"><font face="HelveticaNeue-Light" color="#000003" class=""><br class=""></font></div><div class="" style="orphans: 2; widows: 2;"><br class=""></div><div class="" style="orphans: 2; widows: 2;"><div class=""><font face="HelveticaNeue-Medium" color="#008f00" class="">*** Prima di stampare, pensa all'ambiente! ***</font></div><div class=""><span class="" style="color: rgb(0, 143, 0); font-family: HelveticaNeue-Medium;">*** Before printing think about environment and costs ***</span></div><div class=""><font face="HelveticaNeue-Medium" color="#008f00" class=""><br class=""></font></div><div class="" style="color: rgb(0, 0, 3);"><font face="HelveticaNeue-Light" size="1" class=""><br class=""></font></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class="">Le informazioni, i dati e le notizie contenute nella presente comunicazione e i relativi allegati sono di natura privata e come tali possono essere riservate e sono, comunque, destinate esclusivamente ai destinatari indicati in epigrafe. La diffusione, distribuzione e/o la copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell’art. 616 c.p., sia ai sensi del D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di darcene immediata comunicazione anche inviando un messaggio all’indirizzo email: <a href="mailto:info@bonsaimeme.com" class="">info@bonsaimeme.com</a>. </font><span class="" style="color: rgb(169, 169, 169); font-family: HelveticaNeue-Light; font-size: x-small;">Il testo della email potrebbe contenere opinioni personali e non necessariamente riconducibili a quelle di Bonsaimeme S.r.l.</span></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class=""><br class=""></font></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class="">--- --- ---</font></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class=""><br class=""></font></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class="">This e-mail (including attachments) is intended only for the recipient(s) named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not the named recipient, please contact: <a href="mailto:info@bonsaimeme.com" class="">info@bonsaimeme.com</a> and delete the e-mail from your system. Rif. D.L. 196/2003.</font></div></div></div></div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 3 Apr 2019, at 00:32, Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" class="">guillaume@varnish-software.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello Daniele,<div class=""><br class=""></div><div class="">Looks like you are hitting the send_timeout. Try "varnishadm param.show | grep timeout", and see if you have something around 120s.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br clear="all" class=""><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class="">-- <br class=""></div>Guillaume Quintard<br class=""></div></div></div><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 20, 2019 at 3:32 AM Daniele Piaggesi <<a href="mailto:daniele.piaggesi@bonsaimeme.com" class="">daniele.piaggesi@bonsaimeme.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class=""><div class="">Dear all</div><div class=""><br class=""></div><div class="">I have a problem with my Varnish installation when I try to stream mp3 files through Varnish Cache 4. This is the scenario.</div><div class=""><br class=""></div><div class="">I have a Drupal website in which editors can upload mp3s. These mp3s are listed in a section of website and the end user can listen using an HTML 5 player.</div><div class="">The stack is: Varnish 4 <-> Nginx 1.11<-> Drupal 7 on a GNU/Linux Debian Jessie. Varnish and Nginx are installed with Debian packages.</div><div class=""><br class=""></div><div class="">My Varnish configuration is here: <a href="https://pastebin.com/8Kw1b2mL" target="_blank" class="">https://pastebin.com/8Kw1b2mL</a></div><div class=""><br class=""></div><div class="">When I try to listen an mp3 directly through Nginx all works well: player loads the file and I can listen the mp3. If I try to do the same through Varnish, the player remains in loading and mp3 doesn’t start. I tried to download the mp3 file using curl and my request goes in timeout.</div><div class=""><br class=""></div><div class="">I had a look at varnishlog and this is the output:</div><div class=""><br class=""></div><div class="">* << Request >> 1409738</div><div class="">- Begin req 1246052 rxreq</div><div class="">- Timestamp Start: 1552587068.541997 0.000000 0.000000</div><div class="">- Timestamp Req: 1552587068.541997 0.000000 0.000000</div><div class="">- ReqStart 93.147.150.135 15330</div><div class="">- ReqMethod GET</div><div class="">- ReqURL /sites/default/files/audio/radio_interviews/20180927-rds-gr_rds_1700-170602593m_1.mp3</div><div class="">- ReqProtocol HTTP/1.1</div><div class="">- ReqHeader Host: <a href="http://www.xxx.it/" target="_blank" class="">www.xxx.it</a></div><div class="">- ReqHeader Connection: keep-alive</div><div class="">- ReqHeader Pragma: no-cache</div><div class="">- ReqHeader Cache-Control: no-cache</div><div class="">- ReqHeader Accept-Encoding: identity;q=1, *;q=0</div><div class="">- ReqHeader User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36</div><div class="">- ReqHeader chrome-proxy: frfr</div><div class="">- ReqHeader Accept: */*</div><div class="">- ReqHeader Referer: <a href="http://www.xxx.it/path/to/url" target="_blank" class="">http://www.xxx.it/path/to/url</a></div><div class="">- ReqHeader Accept-Language: en-US,en;q=0.9,es;q=0.8,fr;q=0.7,it;q=0.6</div><div class="">- ReqHeader Cookie: SESScookieagreed=2; has_js=1; _ga=GA1.2.950111086.1552579260; _gid=GA1.2.112403313.1552579260; __atuvc=2%7C11; _gat_UA-57096474-1=1</div><div class="">- ReqHeader Range: bytes=0-</div><div class="">- ReqHeader X-Forwarded-For: 93.147.150.135</div><div class="">- VCL_call RECV</div><div class="">- VCL_acl NO_MATCH allowed_monitors</div><div class="">- ReqUnset X-Forwarded-For: 93.147.150.135</div><div class="">- ReqHeader X-Forwarded-For: 93.147.150.135, 93.147.150.135</div><div class="">- ReqURL /sites/default/files/audio/radio_interviews/20180927-rds-gr_rds_1700-170602593m_1.mp3</div><div class="">- ReqHeader x-range: bytes=0-</div><div class="">- ReqUnset Cookie: SESScookieagreed=2; has_js=1; _ga=GA1.2.950111086.1552579260; _gid=GA1.2.112403313.1552579260; __atuvc=2%7C11; _gat_UA-57096474-1=1</div><div class="">- VCL_return hash</div><div class="">- ReqUnset Accept-Encoding: identity;q=1, *;q=0</div><div class="">- VCL_call HASH</div><div class="">- ReqUnset Range: bytes=0-</div><div class="">- VCL_return lookup</div><div class="">- Hit 229378</div><div class="">- VCL_call HIT</div><div class="">- VCL_return fetch</div><div class="">- VCL_Error change return(fetch) to return(miss) in vcl_hit{}</div><div class="">- VCL_call MISS</div><div class="">- VCL_return fetch</div><div class="">- Link bereq 1409739 fetch</div><div class="">- Timestamp Fetch: 1552587068.542520 0.000523 0.000523</div><div class="">- RespProtocol HTTP/1.1</div><div class="">- RespStatus 200</div><div class="">- RespReason OK</div><div class="">- RespHeader Server: nginx/1.11.5</div><div class="">- RespHeader Date: Thu, 14 Mar 2019 18:11:08 GMT</div><div class="">- RespHeader Last-Modified: Fri, 28 Sep 2018 08:26:56 GMT</div><div class="">- RespHeader ETag: "5bade5d0-a0b94"</div><div class="">- RespHeader Content-Type: audio/mpeg</div><div class="">- RespHeader Content-Length: 658324</div><div class="">- RespHeader X-Cacheable: YES</div><div class="">- RespHeader X-Varnish: 1409738</div><div class="">- RespHeader Age: 0</div><div class="">- RespHeader Via: 1.1 varnish-v4</div><div class="">- VCL_call DELIVER</div><div class="">- RespHeader X-Cache: MISS</div><div class="">- RespHeader X-Cookie:</div><div class="">- RespHeader grace:</div><div class="">- RespHeader X-Varnish-Server: <a href="http://www.xxx.it/" target="_blank" class="">www.xxx.it</a></div><div class="">- VCL_return deliver</div><div class="">- Timestamp Process: 1552587068.542536 0.000539 0.000016</div><div class="">- RespHeader Accept-Ranges: bytes</div><div class="">- Debug "RES_MODE 2"</div><div class="">- RespHeader Connection: keep-alive</div><div class="">- Debug "Hit idle send timeout, wrote = 247608/658701; retrying"</div><div class="">- Debug "Write error, retval = -1, len = 411093, errno = Resource temporarily unavailable"</div><div class="">- Timestamp Resp: 1552587188.539239 119.997242 119.996703</div><div class="">- ReqAcct 733 0 733 377 658324 658701</div><div class="">- End</div><div class=""><br class=""></div><div class="">I’m not a Varnish “guru”, but it seems that the error is:</div><div class=""><br class=""></div><div class=""><div class=""><b class="">- Debug "Hit idle send timeout, wrote = 247608/658701; retrying"</b></div><div class=""><b class="">- Debug "Write error, retval = -1, len = 411093, errno = Resource temporarily unavailable"</b></div></div><div class=""><br class=""></div><div class="">I search a lot on Google but I didn’t find anything about that, except for a timeout problem that doesn’t seem to me because timeout settings are set to 60s (first_byte), same as Nginx.</div><div class=""><br class=""></div><div class="">Any help is really appreciated. If you need some other infos, let me know.</div><div class=""><br class=""></div><div class="">Thanks in advance</div><div class="">Daniele</div><div class="">
<div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><div style="overflow-wrap: break-word;" class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><div class=""><font color="#d5383b" face="HelveticaNeue-Medium" style="font-size:14px" class="">Daniele Piaggesi</font></div><div class=""><div class=""><br class=""></div><div class=""><font face="HelveticaNeue-Light" class=""><font color="#d5383b" class="">Mobile</font><font color="#c8c8c8" class="">:</font> +39 393 880 78 50</font></div><div class=""><font face="HelveticaNeue-Light" class=""><font color="#d5383b" class="">Skype:</font> g0blin79</font></div><div class=""><font color="#d5383b" style="font-family:HelveticaNeue-Light" class="">E-mail:</font><span style="font-family:HelveticaNeue-Light" class=""> <a href="mailto:daniele.piaggesi@bmeme.com" target="_blank" class="">daniele.piaggesi@bmeme.com</a></span></div><div class=""><font face="HelveticaNeue-Light" color="#929292" class="">------------------------------------------</font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">Bonsaimeme S.r.l.</font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">Via del Porto Fluviale, 9</font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">00154 Roma - Italy</font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class=""><br class=""></font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">Phone: +39 06 98 26 04 39 </font></div><div class=""><font face="HelveticaNeue-Light" color="#929292" size="1" class="">Fax: +39 06 94 81 02 03</font></div><div class=""><font face="HelveticaNeue-Light" class=""><font color="#929292" class="">------------------------------------------</font>-</font></div><div class=""><font face="HelveticaNeue-Light" color="#000003" size="1" class=""><a href="http://bmeme.com/" target="_blank" class="">bmeme.com</a></font></div></div><div class=""><font face="HelveticaNeue-Light" color="#000003" class=""><br class=""></font></div><div class=""><br class=""></div><div class=""><div class=""><font face="HelveticaNeue-Medium" color="#008f00" class="">*** Prima di stampare, pensa all'ambiente! ***</font></div><div class=""><span style="color:rgb(0,143,0);font-family:HelveticaNeue-Medium" class="">*** Before printing think about environment and costs ***</span></div><div class=""><font face="HelveticaNeue-Medium" color="#008f00" class=""><br class=""></font></div><div style="color:rgb(0,0,3)" class=""><font face="HelveticaNeue-Light" size="1" class=""><br class=""></font></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class="">Le informazioni, i dati e le notizie contenute nella presente comunicazione e i relativi allegati sono di natura privata e come tali possono essere riservate e sono, comunque, destinate esclusivamente ai destinatari indicati in epigrafe. La diffusione, distribuzione e/o la copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell’art. 616 c.p., sia ai sensi del D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di darcene immediata comunicazione anche inviando un messaggio all’indirizzo email: <a href="mailto:info@bonsaimeme.com" target="_blank" class="">info@bonsaimeme.com</a>. </font><span style="color:rgb(169,169,169);font-family:HelveticaNeue-Light;font-size:x-small" class="">Il testo della email potrebbe contenere opinioni personali e non necessariamente riconducibili a quelle di Bonsaimeme S.r.l.</span></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class=""><br class=""></font></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class="">--- --- ---</font></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class=""><br class=""></font></div><div class=""><font color="#a9a9a9" face="HelveticaNeue-Light" size="1" class="">This e-mail (including attachments) is intended only for the recipient(s) named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not the named recipient, please contact: <a href="mailto:info@bonsaimeme.com" target="_blank" class="">info@bonsaimeme.com</a> and delete the e-mail from your system. Rif. D.L. 196/2003.</font></div></div></div></div></div>
</div>
<br class=""></div>_______________________________________________<br class="">
varnish-misc mailing list<br class="">
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank" class="">varnish-misc@varnish-cache.org</a><br class="">
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank" class="">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>