Actions
Bug #1177
closedeof for socket block script
Description
=begin
eof and eof? run awhile
Is it OK ?
How to check socket EOF without blocking ?
=end
Files
Updated by nobu (Nobuyoshi Nakada) over 15 years ago
=begin
Hi,
At Thu, 19 Feb 2009 23:23:23 +0900,
Oleg Puchinin wrote in [ruby-core:22258]:
eof and eof? run awhile
Is it OK ?
How to check socket EOF without blocking ?
Could you show the reproduceable code?
--
Nobu Nakada
=end
Updated by nobu (Nobuyoshi Nakada) over 15 years ago
- Status changed from Open to Feedback
=begin
=end
Updated by akr (Akira Tanaka) over 15 years ago
- Status changed from Feedback to Rejected
=begin
I found server and client code in redmine.
You cannot check EOF until server close the socket or send some data.
Your server, test_tcp_server.rb, doesn't close the socket until the client closes the socket.
The server never send data.
So eof? need to block because the server may close the socket in future.
It is not a bug.
=end
Actions
Like0
Like0Like0Like0