Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5849

Miessage max size limit

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.2
    • Component/s: Networking

      Hi,

      playing with mongo and sending big bulks insert commands, I get the error

      "Wed May 16 11:59:01 [conn139] recv(): message len 58721588 is too large58721588"

      Looking at the code about this limitation, I found the limit being 48000000 and defined in message_port.cpp

      Can you explain me why this limit of 48000000 came from ?
      It is just an arbitrary limit defined as approximately 3 times the maximum document size ?

      I found nowhere else in the code a reference to this number, except in js-1.7 which severals times use the number 0x48000000.
      Since I found no others reason for the 48000000 limits, I was wondering that maybe this limit should be 0x48000000 instead of 4800000.

      Does somebody have some insight about this ?

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            maxired Maxence Dalmais
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: