From 6c71ce88ffe42e1c44d175a2cb3705632c81f7e6 Mon Sep 17 00:00:00 2001 From: Dwight Date: Wed, 25 Aug 2010 14:59:34 -0400 Subject: [PATCH] increase the maximum message rteceive size to 48MB for the transport. bulk insert messages might be pretty big. --- util/message.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/message.cpp b/util/message.cpp index af36324b7a1..857fb7c2f4c 100644 --- a/util/message.cpp +++ b/util/message.cpp @@ -399,9 +399,9 @@ namespace mongo { int lft = 4; recv( lenbuf, lft ); - if ( len < 16 || len > 16000000 ) { // messages must be large enough for headers + if ( len < 16 || len > 48000000 ) { // messages must be large enough for headers if ( len == -1 ) { - // Endian check from the database, after connecting, to see what mode server is running in. + // Endian check from the client, after connecting, to see what mode server is running in. unsigned foo = 0x10203040; send( (char *) &foo, 4, "endian" ); goto again; @@ -417,7 +417,7 @@ namespace mongo { send( s.c_str(), s.size(), "http" ); return false; } - log(_logLevel) << "bad recv() len: " << len << '\n'; + log(0) << "recv(): message len " << len << " is too large" << len << endl; return false; }