Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1769

Stop reconnecting connections

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.9.0.rc0
    • Affects Version/s: None
    • Component/s: Connections
    • Labels:
      None

      Currently when a connection experiences a network error, the socket on this connection is closed but the connection is returned to the pool as a usable one. In case of, say, a retryable write, this connection would then be immediately used for the retry - and would have to reconnect prior to performing the requested operation. This is while the pool may have had an already established connection in it which would go unused.

      This ticket is for stopping driver reuse of closed connections. For backwards compatibility reasons the driver will permit reusing closed connections (and will reconnect them), with a warning.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: