[CDRIVER-59] Non-blocking connect timeout and op timeouts. Created: 15/Apr/11  Updated: 11/Nov/13  Resolved: 11/Nov/13

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

Type: Improvement Priority: Minor - P4
Reporter: Kyle Banker Assignee: Gary Murakami
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 Description   

Probably want to abandon SO_RCVTIMEO and their ilk.



 Comments   
Comment by Christian Hergert [ 11/Nov/13 ]

The new driver uses non-blocking sockets (even when working synchronously), and the timeout is enforced using poll().

See https://github.com/chergert/libmongoc/blob/82d0a3b492dc608ad5a1afe5a58be9e018fc5762/mongoc/mongoc-client.c#L77 for the connection code.

Comment by Gary Murakami [ 30/Aug/12 ]

From CS-4106, also check return from IO operations for failure due to timeout and take appropriate action.

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