https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112016-08-15T00:25:11ZRuby Issue Tracking SystemRuby master - Bug #12674: io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeouthttps://bugs.ruby-lang.org/issues/12674?journal_id=600902016-08-15T00:25:11Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/60090/diff?detail_id=42189">diff</a>)</li></ul> Ruby master - Bug #12674: io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeouthttps://bugs.ruby-lang.org/issues/12674?journal_id=600912016-08-15T01:37:10Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>What's your platform?<br>
<del>IIRC, it depends on platforms.</del></p> Ruby master - Bug #12674: io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeouthttps://bugs.ruby-lang.org/issues/12674?journal_id=600932016-08-15T08:01:11Zchucke (Tiago Cardoso)
<ul></ul><p>this was executed on a MAC (darwin, I guess).</p> Ruby master - Bug #12674: io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeouthttps://bugs.ruby-lang.org/issues/12674?journal_id=600992016-08-15T09:05:14Zchucke (Tiago Cardoso)
<ul></ul><p>Just tested on linux (x86_64-linux), same output.</p> Ruby master - Bug #12674: io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeouthttps://bugs.ruby-lang.org/issues/12674?journal_id=608252016-10-11T07:30:50Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li></ul> Ruby master - Bug #12674: io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeouthttps://bugs.ruby-lang.org/issues/12674?journal_id=671222017-10-09T02:51:54Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Rejected</i></li></ul><p><code>IO#wait_readable</code> should return the receiver at EOF, since 2.3.<br>
<code>nil</code> before EOF is the behavior of the OS.</p>