moonbridge

diff reference.txt @ 218:35ea31e45b43

Send a TCP RST instead of TCP FIN when a socket gets garbage collected (and hasn't been closed)
author jbe
date Tue Jun 23 02:07:26 2015 +0200 (2015-06-23)
parents 5601a486e68a
children e53da349fd8f
line diff
     1.1 --- a/reference.txt	Tue Jun 23 02:05:46 2015 +0200
     1.2 +++ b/reference.txt	Tue Jun 23 02:07:26 2015 +0200
     1.3 @@ -66,6 +66,11 @@
     1.4  (or drained) before calling socket:close(). Use socket:finish() to send a
     1.5  TCP FIN packet to the peer before waiting for EOF from the peer.
     1.6  
     1.7 +A socket passed to the "connect" handler will be closed automatically if it was
     1.8 +not closed by the "connect" handler and if the "connect" handler returns
     1.9 +normally (i.e. without throwing an error). If the "connect" handler throws an
    1.10 +error, then the socket will be reset. See socket:reset().
    1.11 +
    1.12  
    1.13  ### socket:drain(maxlen, terminator)
    1.14  
    1.15 @@ -232,8 +237,10 @@
    1.16  
    1.17  ### socket:reset()
    1.18  
    1.19 -Alias for socket:close(0). Closes the socket connection by sending a TCP RST
    1.20 -packet if possible to indicate error condition.
    1.21 +Alias for socket:close(). Closes the socket connection by sending a TCP RST
    1.22 +packet if possible to indicate error condition. This is the default operation
    1.23 +when a socket handle gets garbage collected or the process is terminated
    1.24 +abnormally.
    1.25  
    1.26  Returns true on success, or nil (as first return value) plus error message (as
    1.27  second return value) in case of an I/O error. Using this method on sockets that

Impressum / About Us