[前][次][番号順一覧][スレッド一覧]

ruby-changes:40551

From: normal <ko1@a...>
Date: Wed, 18 Nov 2015 10:18:36 +0900 (JST)
Subject: [ruby-changes:40551] normal:r52630 (trunk): socket: fix typo for default size

normal	2015-11-18 10:18:30 +0900 (Wed, 18 Nov 2015)

  New Revision: 52630

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52630

  Log:
    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...

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/ancdata.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52629)
+++ ChangeLog	(revision 52630)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Nov 18 10:12:36 2015  Eric Wong  <e@8...>
+
+	* ext/socket/ancdata.c (bsock_recvmsg_internal): use 4096 as
+	  default size to match pre-r52610, which also maps to a common
+	  page size.
+
 Wed Nov 18 10:05:25 2015  Shugo Maeda  <shugo@r...>
 
 	* doc/syntax/refinements.rdoc: update documentation to reflect
Index: ext/socket/ancdata.c
===================================================================
--- ext/socket/ancdata.c	(revision 52629)
+++ ext/socket/ancdata.c	(revision 52630)
@@ -1465,7 +1465,7 @@ bsock_recvmsg_internal(VALUE sock, https://github.com/ruby/ruby/blob/trunk/ext/socket/ancdata.c#L1465
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]