-
Type:
Improvement
-
Resolution: Done
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
The read method in SocketStream sets the socket timeout (setSoTimeout) only once at the beginning, leading to a refresh of the timeout for each new read.
Expected Behavior: The aggregate of all reads to receive a server response should be under a single timeout, as per MongoDB's client-side operations timeout specifications.
Acceptance criteria:
- Update the read method to reset setSoTimeout with the remaining timeout before each inputStream read call, akin to the implementation in SocksSocket.java
Performance Impact: To be determined.