зеркало из https://github.com/github/ruby.git
* ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
only when vmaxdatlen is nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1ca597236f
Коммит
3006e5ea78
|
@ -1,3 +1,8 @@
|
|||
Thu Nov 19 02:52:30 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
|
||||
only when vmaxdatlen is nil.
|
||||
|
||||
Thu Nov 19 02:20:11 2015 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/socket/test_socket.rb (test_udp_recvmsg_truncation): rflags is
|
||||
|
|
|
@ -1571,7 +1571,7 @@ bsock_recvmsg_internal(VALUE sock,
|
|||
goto retry;
|
||||
}
|
||||
#else
|
||||
if (grow_buffer && errno == EMSGSIZE)
|
||||
if (NIL_P(vmaxdatlen) && grow_buffer && errno == EMSGSIZE)
|
||||
ss = (ssize_t)iov.iov_len;
|
||||
else
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче