[CDRIVER-619] Fail fast after hangup with TLS Created: 14/Apr/15 Updated: 12/May/15 Resolved: 23/Apr/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 1.1.4 |
| Fix Version/s: | 1.1.5 |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Description |
|
In 1.1.4, a network error at certain point(s) in the TLS code path causes the driver to spin infinitely. To reproduce, first install pip, then mongo-mockup-db:
Then save this in a Python file and run it like "python file.py":
That'll wait up to 100 seconds for a driver to issue listCollections, then when it receives the command it hangs up. I've started this mock server and run this file, using the C Driver built from master (0bd7850609):
The Python server hangs up, and the client hangs and spins the CPU. If I remove "ssl=True" from the Python and "ssl=true" from the C, and rerun both sides, I instead get an immediate log about the hangup from the C Driver and it exits as desired:
The C code also gets a non-NULL return value from mongoc_database_get_collection_names, which is filed as a separate bug |
| Comments |
| Comment by Githook User [ 23/Apr/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@emptysquare.net'}Message: Merge pull request #223 from ajdavis/
|
| Comment by Githook User [ 23/Apr/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@emptysquare.net'}Message: Merge pull request #223 from ajdavis/
|
| Comment by Githook User [ 23/Apr/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by Githook User [ 23/Apr/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by A. Jesse Jiryu Davis [ 21/Apr/15 ] |