Check socket state before accepting connection in ASIO

XMLWordPrintableJSON

    • Networking & Observability
    • Fully Compatible
    • v8.1, v8.0, v7.0
    • 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
    • 0
    • 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
        2. Screenshot 2025-03-21 at 3.35.17 PM.png
          Screenshot 2025-03-21 at 3.35.17 PM.png
          523 kB
        3. SERVER-101581-flamegraph.svg
          842 kB

            Assignee:
            Amirsaman Memaripour
            Reporter:
            Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: