summaryrefslogblamecommitdiffstats
path: root/archives/extend/attachments/20131015/591e8649/attachment.html
blob: d06f0bbeb4bc5ff93b5998a72ff63dca3f623468 (plain) (tree)













































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

</tt>