From: normalperson@... Date: 2017-05-02T02:37:55+00:00 Subject: [ruby-core:80970] [Ruby trunk Bug#13533][Closed] please backport r58534 Issue #13533 has been updated by normalperson (Eric Wong). Status changed from Open to Closed closing to trigger backport request ---------------------------------------- Bug #13533: please backport r58534 https://bugs.ruby-lang.org/issues/13533#change-64634 * Author: normalperson (Eric Wong) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.2: UNKNOWN, 2.3: REQUIRED, 2.4: REQUIRED ---------------------------------------- ``` This bug causes busy wait (100% CPU usage) on IO.copy_stream with sockets/pipes with O_NONBLOCK set. In other words, the following code should not cause 100% CPU usage, just hang forever w/o burning CPU: require 'io/nonblock' r, w = IO.pipe r.nonblock = true IO.copy_stream(r, IO::NULL) This affects Ruby 2.3 and 2.4. ``` -- https://bugs.ruby-lang.org/ Unsubscribe: