-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Unknown
-
None
-
Affects Version/s: 1.15.0
-
Component/s: None
-
None
-
Go Drivers
Context
Starting in v1.15.0, the Go Driver reads server responses in the background (for up to 1 second) after an operation times out to reduce the chances that the connection needs to be closed. However, Go Driver v1.15.0 doesn't send maxTimeMS for Find or Aggregate operations (or for iterating a cursor with getMore). We shouldn't try to read responses in the background if we didn't send maxTimeMS because we may end up tying up many connections in the background for 1 second.
Definition of done
- Don't set awaitingResponse=true if we didn't set maxTimeMS on the server command.
Pitfalls
- This may cause more connections to be closed, although it's likely connections are already being closed in the impacted cases.
- is depended on by
-
GODRIVER-3181 Port "Read responses in the background after an operation timeout" to master
- Closed
- is related to
-
GODRIVER-3172 Read responses in the background after an operation timeout
- Closed
- related to
-
GODRIVER-2944 Support CSOT spec timeoutMode for non-tailable cursors
- Backlog