[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: |
|
||||
| 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: Change-Id: I1fe083c9e66d34091677cad60370e70ef4718a7c |
| Comment by Isabella Siu (Inactive) [ 01/Jul/19 ] |
|
code review url: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/459982 |