On Wed, 13 Mar 2013, Hannes Magnusson wrote:

> > @@ -86,6 +86,8 @@
> >  #define MLOG_NONE    0
> >  #define MLOG_ALL    31 /* Must be the bit sum of all above */
> >  
> > +/* Defaults */
> > +#define MONGO_DEFAULT_MAX_MESSAGE_SIZE (16 * 1024 * 1024)
> 
> Did it not used to be 64 * 1024 * 1024? why the change?

DRIVERS-1 says:

If a server doesn't return this field then use 2 * max bson doc, or 8MB 
if that isn't avail.

Which has no link to 16 or 64 at all. I am changing it to:

#define MONGO_DEFAULT_MAX_DOCUMENT_SIZE (16 * 1024 * 1024)
#define MONGO_DEFAULT_MAX_MESSAGE_SIZE  (32 * 1024 * 1024)

16mb for docs, since that's the default since 2.0 (or even 1.8, and we 
don't support 1.6/1.8 anyway), and 32 for message as that's "2 * max 
bson doc" for what we support.