diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-10 21:05:29 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-10 21:05:29 +0000 |
commit | db2ff03bc0f87df5ec699d3d3d0f9c58c7d114fb (patch) | |
tree | 375602951a2e3e6638b11340996a5b86cae763e4 /ChangeLog | |
parent | 9e459f7aa900c30500a8f04ec57a57a28f49183d (diff) | |
download | ruby-db2ff03bc0f87df5ec699d3d3d0f9c58c7d114fb.tar.gz |
lib/net/protocol.rb (rbuf_fill): avoid exception with read_nonblock
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.
[ruby-core:68787] [Feature #11044]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Apr 11 04:46:42 2015 Eric Wong <e@80x24.org> + + * lib/net/protocol.rb (rbuf_fill): avoid exception with read_nonblock + [ruby-core:68787] [Feature #11044] + Fri Apr 10 23:57:44 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> * dir.c (need_normalization): use getattrlist() if fgetattrlist() |