From: "naruse (Yui NARUSE)" Date: 2022-02-01T12:56:33+00:00 Subject: [ruby-core:107412] [Ruby master Bug#18443] IO read/write/wait hook bug fixes. Issue #18443 has been updated by naruse (Yui NARUSE). Backport changed from 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED to 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONE ruby_3_1 cd4aae430da8303dac9f1be2d1e1b7ce1bc8a458 merged revision(s) f27eb8148f5a72bbacfebfecc7de9305471bb5c9,d75f7078c831d45ab5ba2fae4fbb308d01a21e46,d5836db1b398a7936b0461b3011db66f6cc8c490. ---------------------------------------- Bug #18443: IO read/write/wait hook bug fixes. https://bugs.ruby-lang.org/issues/18443#change-96311 * Author: ioquatix (Samuel Williams) * Status: Closed * Priority: Normal * Backport: 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONE ---------------------------------------- After testing Ruby 3.1.0 extensively, I found some obscure bugs which should be fixed. This should be back ported to 3.1.1 ASAP. - `console.c` incorrect `rb_io_wait` argument. - `rb_read_internal` incorrect logic when handling partial non-blocking reads in `io.c`. - Prefer `wait_readable` rather than `IO.select` in irb implementation. Please see https://github.com/ruby/ruby/pull/5353 for details. -- https://bugs.ruby-lang.org/ Unsubscribe: