[CDRIVER-728] Error code for connection timeouts Created: 28/Jun/15  Updated: 22/Jul/16  Resolved: 22/Jul/16

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: 1.4.0

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

Attachments: PNG File Screen Shot 2016-07-22 at 7.07.14 AM.png    
Issue Links:
Related
is related to CDRIVER-644 bson_error_t's "code" is often wrong Closed

 Description   

When a connection times out, the error domain is set to MONGOC_ERROR_STREAM when it should rather be MONGOC_ERROR_CLIENT.



 Comments   
Comment by A. Jesse Jiryu Davis [ 22/Jul/16 ]

We've greatly improved error messages in the 1.3.x releases, and error messages will be even better in 1.4. We're also adding a list of all error domains and codes (screenshot attached). If you look at the screenshot, you'll see it's actually correct to set domain to MONGOC_ERROR_STREAM for a timeout.

Comment by Marius Soutier [ 28/Jun/15 ]

Error code and message should also say something about the timeout.

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