[CDRIVER-851] Do not allow negative values for wtimeout Created: 17/Sep/15  Updated: 14/Dec/15  Resolved: 14/Dec/15

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.2-beta1
Fix Version/s: 1.2.0

Type: Bug Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Jeremy Mikola
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to PHPC-426 WriteConcern constructor should throw... Closed

 Description   

Per the documentation, wtimeout should be >= 0. URI parsing and mongoc_write_concern_set_wtimeout() both seem to allow negative values.



 Comments   
Comment by Githook User [ 07/Oct/15 ]

Author:

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

Message: Merge pull request #270 from jmikola/cdriver-851

CDRIVER-851: Negative wtimeout values are invalid
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/827d2d8a3c8aead7b0b09f600d778cfd4c967d80

Comment by Githook User [ 07/Oct/15 ]

Author:

{u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}

Message: CDRIVER-851: Negative wtimeout values are invalid
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/f4cb748aaa28abf15c8396f2e3209ef46ee7b821

Comment by Jeremy Mikola [ 17/Sep/15 ]

https://github.com/mongodb/mongo-c-driver/pull/270

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