Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-565

Connections never closed with error as reason

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.2.0
    • Affects Version/s: None
    • Component/s: None

      When a network error occurs during operation execution, the pool for the selected server is cleared. When the Connection that generated the error is then dropped, it attempts to check itself back into the pool, but since the pool has been cleared in the meantime, it closes itself as stale. Instead, this error-originating Connection should close itself with ConnectionClosedReason::Error.

      Because of this, it is currently impossible for a Connection to be closed with ConnectionClosedReason::Error.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: