[CDRIVER-1365] mongoc_client_new function does not return NULL when it fail to connect with server Created: 06/Jul/16  Updated: 06/Jul/16  Resolved: 06/Jul/16

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

Type: Bug Priority: Major - P3
Reporter: Pawan Kumar Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: 24, Fedora
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Comments   
Comment by Hannes Magnusson [ 06/Jul/16 ]

Its not supposed to return NULL either.
See http://api.mongodb.com/c/current/mongoc_client_new.html

Connections are established lazily.
For a proper connection example, see:
http://api.mongodb.com/c/current/tutorial.html#connecting

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