Hi all,
I have a server that accept(2)'s a TCP connection and then immediately closes
it again. On the Smalltalk side I want to figure out if the connection is
still alive.
Eval [
s := Sockets.Socket remote: '127.0.0.1' port: aPort.
s isOpen -> true
s isPeerAlive -> true (according to netstat it is already in
CLOSE_WAIT)
s canRead -> true
]
is there anything I can do to find out that the remote has closed the
connection? On POSIX I would sooner or later get a -1 on read.
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk