1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/socket
normal 46acbe9ddd socket: avoid common exceptions when calling connect_nonblock
Errno::EISCONN and IO::WaitReadable exceptions are common,
expensive, and noisy under normal use.  Avoid raising on them
since they are not exceptional.

* ext/socket/lib/socket.rb (connect_internal): avoid common exceptions
  from connect_nonblock. [ruby-core:68909]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-20 20:46:08 +00:00
..
lib socket: avoid common exceptions when calling connect_nonblock 2015-04-20 20:46:08 +00:00
.document
addrinfo.h
ancdata.c
basicsocket.c
constants.c use frozen string of symbols 2015-04-14 03:31:28 +00:00
depend
extconf.rb * ext/socket/extconf.rb: Solaris 11 has struct tcp_info.tcpi_ca_state, 2015-03-25 08:10:14 +00:00
getaddrinfo.c getaddrinfo.c: GHOST vulnerability check 2015-02-08 04:04:32 +00:00
getnameinfo.c
ifaddr.c
init.c accept_nonblock: favor rb_hash_lookup2 to avoid Hash#default 2015-03-12 22:04:24 +00:00
ipsocket.c * doc/contributors.rdoc: fix a typo. Patch by @davydovanton 2015-04-15 01:37:47 +00:00
mkconstants.rb
option.c * ext/socket/extconf.rb: Solaris 11 has struct tcp_info.tcpi_ca_state, 2015-03-25 08:10:14 +00:00
raddrinfo.c raddrinfo.c: fix memory leak 2015-04-08 23:24:10 +00:00
rubysocket.h accept_nonblock supports "exception: false" 2015-03-12 03:03:04 +00:00
socket.c connect_nonblock(..., exception: false) does not raise EISCONN 2015-04-20 02:11:10 +00:00
sockport.h
sockssocket.c
tcpserver.c accept_nonblock supports "exception: false" 2015-03-12 03:03:04 +00:00
tcpsocket.c
udpsocket.c
unixserver.c accept_nonblock supports "exception: false" 2015-03-12 03:03:04 +00:00
unixsocket.c