From: Tanaka Akira Date: 2008-12-29T16:40:21+09:00 Subject: [ruby-core:20951] Re: [ruby-cvs:28380] Ruby:r21162 (trunk): * ext/socket/socket.c (s_recvfrom_nonblock): default maxlen to be In article <200812290732.mBT7WvLl022243@ci.ruby-lang.org>, matz@ruby-lang.org writes: > matz 2008-12-29 16:32:56 +0900 (Mon, 29 Dec 2008) > > New Revision: 21162 > > http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21162 > > Log: > * ext/socket/socket.c (s_recvfrom_nonblock): default maxlen to be > 65536. suggested by akr in [ruby-core:20918]. response to > feature request #936 in [ruby-core:20917]. I don't say 65536 is safe for all protocols. 65536 is safe for UDP becase the length field in UDP packet is 2-bytes. See RFC 768. But it may vary for other protocols. You changed BasicSocket#recvfrom_nonblock but it is not I intend. My idea is only for UDPSocket#recvfrom_nonblock. -- Tanaka Akira