<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_ym19_1_1474984041665_228457"><span id="yui_3_16_0_ym19_1_1474984041665_228456">I am interested in this too.  I noticed under load Erlang does not properly close sockets and produces a read error on the peer.  I documented the behavior in this issue <a href="https://github.com/vans163/stargate/issues/1" class="enhancr2_d964cc4b-74e7-d4e0-f029-f304cbfeafb5" id="yui_3_16_0_ym19_1_1474984041665_230519">apr_socket_connect(): Connection reset by peer (104) · Issue #1 · vans163/stargate</a></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Thursday, September 29, 2016 12:00 PM, Trent Hampton <trenthampton@gmail.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container">In January 2013, Loic suggested a feature to monitor sockets. The suggestion can be found here: <br><br><a href="http://erlang.org/pipermail/erlang-questions/2013-January/071668.html" target="_blank">http://erlang.org/pipermail/erlang-questions/2013-January/071668.html</a><br><br>Was socket monitoring implemented?<br><br>If not, then is there a way to monitor, on a server, when a client closes a socket?<br><br>I am using ranch.<br><br>Thank you,<br><br>Trent Hampton<br>_______________________________________________<br>erlang-questions mailing list<br><a ymailto="mailto:erlang-questions@erlang.org" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br><br><br></div>  </div> </div>  </div></div></body></html>