[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: |
|
||||||||
| Issue Links: |
|
||||||||
| 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. |