зеркало из https://github.com/github/ruby.git
* ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
when EMSGSIZE occurs on non HAVE_STRUCT_MSGHDR_MSG_CONTROL platforms (such as, Windows). fixes a test error revealed by r52625. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ca5f5871e8
Коммит
d8e1939232
|
@ -1,3 +1,9 @@
|
|||
Wed Nov 18 10:33:06 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
|
||||
when EMSGSIZE occurs on non HAVE_STRUCT_MSGHDR_MSG_CONTROL platforms
|
||||
(such as, Windows). fixes a test error revealed by r52625.
|
||||
|
||||
Wed Nov 18 10:12:36 2015 Eric Wong <e@80x24.org>
|
||||
|
||||
* ext/socket/ancdata.c (bsock_recvmsg_internal): use 4096 as
|
||||
|
|
|
@ -1570,6 +1570,10 @@ bsock_recvmsg_internal(VALUE sock,
|
|||
gc_done = 1;
|
||||
goto retry;
|
||||
}
|
||||
#else
|
||||
if (grow_buffer && errno == EMSGSIZE)
|
||||
ss = (ssize_t)iov.iov_len;
|
||||
else
|
||||
#endif
|
||||
rb_sys_fail("recvmsg(2)");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче