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

Check socket state before accepting connection in ASIO

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • N&O 2025-03-17, N&O 2025-03-31, N&O 2025-04-14, N&O 2025-04-28, N&O 2025-05-12
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      If a connection has been closed by the client before we accept it in _acceptConnection, we will pass it to our SessionWorkflow, make a Client, then immediately discard it when the first read fails. To prevent that extra work, check the socket state as a part of acceptConnection & discard it if it is already closed.

        1. master_flamegraph.svg
          809 kB
          Erin McNulty
        2. Screenshot 2025-03-21 at 3.35.17 PM.png
          523 kB
          Erin McNulty
        3. SERVER-101581-flamegraph.svg
          842 kB
          Erin McNulty

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: