-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Connections
-
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.
- related to
-
RUBY-1560 Implement Connection Monitoring and Pooling spec
- Closed
- links to