[CDRIVER-1569] Change "connection error" to "unknown connection error" Created: 29/Sep/16  Updated: 26/Oct/16  Resolved: 26/Oct/16

Status: Closed
Project: C Driver
Component/s: errors, libmongoc
Affects Version/s: None
Fix Version/s: 1.5.0

Type: Improvement Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Request from Eliot to help diagnose any user connection problems in the future: let's make it clear when the driver is using a default error message that this is a default error message. It should indicate that we know very little about why the network error happened.



 Comments   
Comment by Githook User [ 26/Oct/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1569 better network errors from scanner
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5071c98688c5e8e841261fcf14e7fb3ffc477f9a

Comment by Hannes Magnusson [ 29/Sep/16 ]

The

Command failure: Failed to send "ismaster" command with database "admin": Failed to read 36 bytes from socket within 300000 milliseconds.

is also usually a lie. It often returns immediately, and indicates the server has closed the connection, and we failed right away, not waited for 30 seconds.

Generated at Wed Feb 07 21:12:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.