Issue #11044 has been reported by Eric Wong.

----------------------------------------
Feature #11044: [PATCH] lib/net/protocol.rb (rbuf_fill): avoid exception with read_nonblock
https://bugs.ruby-lang.org/issues/11044

* Author: Eric Wong
* Status: Open
* Priority: Normal
* Assignee: Eric Wong
----------------------------------------
Exceptions are noisy in debug output and waste allocations.
Use "exception: false" introduced in 2.1 to return symbols for
common errors instead.

Follow-up commits will be prepared to reduce EOFError exceptions
to further quiet debug output and IO.select may be replaced by
io/wait methods if available to reduce allocations.

There's no visible API changes, so I'll commit this in a few days
unless there is an objection and then prepare follow-up patches.


---Files--------------------------------
0001-lib-net-protocol.rb-rbuf_fill-avoid-exception-with-r.patch (1.95 KB)


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