*UPDATE*: Fixed in 1.1.5, still reproducible in 1.2.0. Uncomment the "/TLS/handshake_stall" test and fix in 1.2.0-dev branch.
The default stream initiator in mongoc_client.c makes a blocking call to mongoc_stream_tls_do_handshake(). This can cause the driver to full hang until some kind of network error is returned.
https://github.com/mongodb/mongo-c-driver/blob/master/src/mongoc/mongoc-client.c#L339
We should pull connecttimeoutms or sockettimeoutms out of the uri and use that in lieu of permanent blocking.
- is related to
-
CDRIVER-577 v1.2 no longer uses stream initiator callback
- Closed
- links to