1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/net
normal db2ff03bc0 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
2015-04-10 21:05:29 +00:00
..
http * lib/net/http/header.rb: pass header names as symbols. 2015-02-08 11:09:44 +00:00
ftp.rb * lib/net/ftp.rb (chdir, delete, gettextfile, mdtm, mkdir, nlst, 2015-02-10 02:26:06 +00:00
http.rb * lib/net/http.rb (edit_path): use path which is absolute ftp url 2015-04-03 23:18:20 +00:00
https.rb
imap.rb * lib/net/imap.rb: Fix undefined variable usage & refactor/DRY 2014-12-06 01:13:45 +00:00
pop.rb
protocol.rb lib/net/protocol.rb (rbuf_fill): avoid exception with read_nonblock 2015-04-10 21:05:29 +00:00
smtp.rb
telnet.rb