Hi, perhaps I miss something but when I close a TCP connection using
TCPSocket#close the connection remains as OS level for long seconds (minutes).
Be reading the doc:
IO#close
Closes ios and flushes any pending writes to the operating system. The
stream is unavailable for any further data operations; an IOError is raised
if such an attempt is made. I/O streams are automatically closed when they
are claimed by the garbage collector.
So, does it mean that the TCP connection is *really* terminated when the
garbage collector removes it (some seconds/minutes after calling
TCPSocket#close)?
Unfortunatelly it's not valid for me, I need the capability to close a TCP
connection and open a new one without mantaining two parallel connections.
Any other way to really close a TCP connection at OS level? Thanks.
···
--
Iñaki Baz Castillo <ibc@aliax.net>