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 b88296be43 connect_nonblock(..., exception: false) does not raise EISCONN
* ext/socket/socket.c (sock_connect_nonblock): do not raise EISCONN
  [ruby-core:68926] [Feature #11072]
* test/socket/test_nonblock.rb: check non-EISCONN on 2nd connect

This is to reduce exceptions for code which issues a
(IMHO, unnecessary) second connect() syscall.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-20 02:11:10 +00:00
..
lib
.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
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
socket.c connect_nonblock(..., exception: false) does not raise EISCONN 2015-04-20 02:11:10 +00:00
sockport.h
sockssocket.c
tcpserver.c
tcpsocket.c
udpsocket.c
unixserver.c
unixsocket.c