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

Log that connection was accepted before configuring socket options

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.2
    • Affects Version/s: None
    • Component/s: Networking
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Sharding 10 (02/19/16)
    • 0

      The MongoDB listener code first accepts an incoming connection, then configures the socket options and only then logs that the connection was accepted.

      Configuring the socket options involves calls to setsockopt/getsockopt, which theoretically may block and this is the suspected cause of a JS test failure.

      In order to help diagnose test failures better, log that a connection was accepted before making any blocking calls.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: