From ca5f5871e8f54c76e804fb179e32a2ffa6fda4dc Mon Sep 17 00:00:00 2001 From: normal Date: Wed, 18 Nov 2015 01:18:30 +0000 Subject: socket: fix typo for default size * ext/socket/ancdata.c (bsock_recvmsg_internal): use 4096 as default size to match pre-r52610, which also maps to a common page size. Oops; absolutely no idea why I made this typo... git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/ancdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c index 8fcd53c9fb..9d28573fde 100644 --- a/ext/socket/ancdata.c +++ b/ext/socket/ancdata.c @@ -1465,7 +1465,7 @@ bsock_recvmsg_internal(VALUE sock, int gc_done = 0; #endif - maxdatlen = NIL_P(vmaxdatlen) ? 4061 : NUM2SIZET(vmaxdatlen); + maxdatlen = NIL_P(vmaxdatlen) ? 4096 : NUM2SIZET(vmaxdatlen); #if defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL) maxctllen = NIL_P(vmaxctllen) ? 4096 : NUM2SIZET(vmaxctllen); #else -- cgit v1.2.3