From: Markus Koenig Date: 2005-07-08T05:05:47+09:00 Subject: Re: Socket Question - close Zach Dennis schrieb: Zach Dennis wrote: > If you have two sockets connected to eachother. Let's say... > a_socket and b_socket > > And you tell a_socket to close, why does b_socket not know it is closed? Because there might be some data left in b_socket's input buffer: a_socket.puts 'Hello world!' a_socket.close If b_socket.closed? would be true now, b_socket.gets wouldn't return "Hello world!", which would be weird. After all, the underlying file descriptor is still open. Greets, Markus