mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/ipsocket.c (init_inetsock_internal): Don't try mismached
address family if already failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2fef15145c
commit
8c55a0a6e4
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Jul 2 00:39:59 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* ext/socket/ipsocket.c (init_inetsock_internal): Don't try mismached
|
||||||
|
address family if already failed.
|
||||||
|
|
||||||
Mon Jul 1 23:07:38 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
Mon Jul 1 23:07:38 2013 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* template/encdb.h.tmpl: define encoding index macros to use the index
|
* template/encdb.h.tmpl: define encoding index macros to use the index
|
||||||
|
|
|
@ -69,7 +69,7 @@ init_inetsock_internal(struct inetsock_arg *arg)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!lres) {
|
if (!lres) {
|
||||||
if (res->ai_next)
|
if (res->ai_next || status < 0)
|
||||||
continue;
|
continue;
|
||||||
/* Use a different family local address if no choice, this
|
/* Use a different family local address if no choice, this
|
||||||
* will cause EAFNOSUPPORT. */
|
* will cause EAFNOSUPPORT. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue