<div><div class="gmail_quote"><div>Thanks a lot guys. Works perfectly now :-)</div><div><br></div><div>/Frank</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg"><div class="gmail_msg">Hi,</div><div id="m_-1565634350725377112AppleMailSignature" class="gmail_msg"><br class="gmail_msg"></div><div id="m_-1565634350725377112AppleMailSignature" class="gmail_msg">You can set a request timeout in the cowboy options. The default is 5 seconds.</div><div id="m_-1565634350725377112AppleMailSignature" class="gmail_msg"><br class="gmail_msg"></div><div id="m_-1565634350725377112AppleMailSignature" class="gmail_msg">See also the change here (at the bottom)<br class="gmail_msg"><a href="https://github.com/zotonic/zotonic/commit/ad0ec7576ee1cbbb589f61ff4528fbeb29b11d36" class="gmail_msg" target="_blank">https://github.com/zotonic/zotonic/commit/ad0ec7576ee1cbbb589f61ff4528fbeb29b11d36</a></div><div id="m_-1565634350725377112AppleMailSignature" class="gmail_msg"><br class="gmail_msg"></div><div id="m_-1565634350725377112AppleMailSignature" class="gmail_msg">Best, Marc<br class="gmail_msg"><br class="gmail_msg">Sent from my iPhone</div></div><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg">On 21 Mar 2017, at 19:22, Frank Muller <<a href="mailto:frank.muller.erl@gmail.com" class="gmail_msg" target="_blank">frank.muller.erl@gmail.com</a>> wrote:<br class="gmail_msg"><br class="gmail_msg"></div><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">Hi Everyone,</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"></span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">I’m facing a little strange issue with Cowboy (latest from GitHub).</span><div class="gmail_msg"><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">My backend (a DB) takes couple of seconds before returning a result.</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"></span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">The problem is that my Cowboy’ handler seems to close the connexion with the client before my backend returns. Or wait forever!!!</span></div><div class="gmail_msg"><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">Is there a way to tell Cowboy to wait let say 30sec before closing the connexion with the client ???</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"></span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">Thanks in advance.</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"></span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">/Frank</span></div>
</div></blockquote></div><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><span class="gmail_msg">_______________________________________________</span></div></blockquote></div><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"><span class="gmail_msg">erlang-questions mailing list</span><br class="gmail_msg"><span class="gmail_msg"><a href="mailto:erlang-questions@erlang.org" class="gmail_msg" target="_blank">erlang-questions@erlang.org</a></span><br class="gmail_msg"><span class="gmail_msg"><a href="http://erlang.org/mailman/listinfo/erlang-questions" class="gmail_msg" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br class="gmail_msg"></div></blockquote></div></blockquote></div></div>