diff options
Diffstat (limited to 'archives/extend/attachments/20131015/591e8649/attachment.html')
-rw-r--r-- | archives/extend/attachments/20131015/591e8649/attachment.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/archives/extend/attachments/20131015/591e8649/attachment.html b/archives/extend/attachments/20131015/591e8649/attachment.html new file mode 100644 index 00000000..d06f0bbe --- /dev/null +++ b/archives/extend/attachments/20131015/591e8649/attachment.html @@ -0,0 +1,46 @@ +<tt> +<div dir="ltr">so it will disconnect if the client only listens and sends nothing to the socket, correct?</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/15 Loïc Hoguin <span dir="ltr"><<a href="mailto:[email protected]" target="_blank">[email protected]</a>></span><br><br> +<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The socket connected to the client.<br><br> +<br><br> +TCP isn't perfect, there is no way to be 100% sure the client is still connected, hence the timeout. If the client is still up you should make it reconnect.<div><div class="h5"><br><br> +<br><br> +On 10/16/2013 04:55 AM, akonsu wrote:<br><br> +</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><br> +Hello,<br><br> +<br><br> +the documentation for `init` at<br><br> +<a href="http://ninenines.eu/docs/en/cowboy/HEAD/manual/cowboy_loop_handler" target="_blank">http://ninenines.eu/docs/en/<u></u>cowboy/HEAD/manual/cowboy_<u></u>loop_handler</a> says:<br><br> +<br><br> +The receive loop will run for a duration of up to Timeout milliseconds<br><br> +after it last received data from the socket, at which point it will stop<br><br> +and send a 204 No Content reply.<br><br> +<br><br> +What socket does it refer to? I had an impression that the loop handles<br><br> +erlang messages. Do these messages come through a socket (sorry about a<br><br> +trivial question, but I am new to erlang), and this is the socket that<br><br> +the docs talk about?<br><br> +<br><br> +The reason why I am asking is because I used to have a Timeout of 60000,<br><br> +and even though messages kept coming non stop, it still kept<br><br> +disconnecting after a minute, until I set Timeout to infinity.<br><br> +<br><br> +thanks<br><br> +Konstantin<br><br> +<br><br> +<br></div></div><br> +______________________________<u></u>_________________<br><br> +Extend mailing list<br><br> +<a href="mailto:[email protected]" target="_blank">[email protected]</a><br><br> +<a href="http://lists.ninenines.eu:81/listinfo/extend" target="_blank">http://lists.ninenines.eu:81/<u></u>listinfo/extend</a><br><br> +<br><span class="HOEnZb"><font color="#888888"><br> +</font></span></blockquote><span class="HOEnZb"><font color="#888888"><br> +<br><br> +<br><br> +-- <br><br> +Loďc Hoguin<br><br> +Erlang Cowboy<br><br> +Nine Nines<br><br> +<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br><br> +</font></span></blockquote></div><br></div><br> + +</tt> |