Actions
Feature #11044
closed[PATCH] lib/net/protocol.rb (rbuf_fill): avoid exception with read_nonblock
[ruby-core:<unknown>]
Description
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
Actions
Like0
Like0