Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-275

Drivers should check encoded operation size on client side

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-589 Done 1.7.0
      CXX-1483 Fixed
      GODRIVER-149 Done
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-589 Done 1.7.0 CXX-1483 Fixed GODRIVER-149 Done

      While encoding operations to send to the server (OP_QUERY, OP_INSERT, ...) if the encoded operation exceeds a maximum number of bytes a driver MUST NOT send the operation to the server and MUST raise an error back to the application. For OP_INSERT the maximum size is ismaster.maxMessageSizeBytes. For all other operations the maximum size is ismaster.maxBsonObjectSize + 16k

      Why?

      Above a certain message size (tbd), instead of returning a useful error about oversize documents or messages the server just closes the socket. This makes debugging applications difficult since a socket being closed provides no information about what you did wrong.

            Assignee:
            Unassigned Unassigned
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: