[GODRIVER-1162] Create a Connection interface that allows connections to be forcibly expired Created: 25/Jun/19  Updated: 28/Oct/23  Resolved: 02/Jul/19

Status: Closed
Project: Go Driver
Component/s: Core API
Affects Version/s: None
Fix Version/s: 1.1.0

Type: Task Priority: Blocker - P1
Reporter: Matthew Chiaravalloti Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

The new driver.Connection interface does not have a method for killing a connection completely (as in, closing the underlying net.Conn as opposed to returning the connection to the pool).

A new interface can extend the driver.Connection interface with an Expire() method that kills the underlying connection, or an Expire() method can be added to the existing interface. There should also be an Alive() method to check if a connection is still alive (i.e. its Expire() method has not been called).



 Comments   
Comment by Githook User [ 02/Jul/19 ]

Author:

{'name': 'iwysiu', 'username': 'iwysiu', 'email': 'isabella.siu@10gen.com'}

Message: GODRIVER-1162 create driver.Expirable interface

Change-Id: I1fe083c9e66d34091677cad60370e70ef4718a7c
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/ea4b543a1e0a98d4ba9d5728f71269f1a89f1d9f

Comment by Isabella Siu (Inactive) [ 01/Jul/19 ]

code review url: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/459982

Generated at Thu Feb 08 08:35:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.