[ruby-core:97007] [Ruby master Feature#16597] missing poll()

From: msuchanek@...
Date: 2020-01-27 21:26:16 UTC
List: ruby-core #97007
Issue #16597 has been updated by michals (Michal Such疣ek).


ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]

----------------------------------------
Feature #16597: missing poll()
https://bugs.ruby-lang.org/issues/16597#change-84094

* Author: michals (Michal Such疣ek)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
When using a socket or a pipe for writing select() cannot determine that the socket is closed. It tells you that it is ready to write but if you don't have data to write you cannot tell that it is in fact closed.

ruby internally uses poll() which can tell when a write socket is closed (without attempting a write()) but presents the broken select() interface.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next