[CDRIVER-35] File descriptor leak Created: 19/Jan/11 Updated: 19/Oct/16 Resolved: 26/Jan/11 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 0.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | nicks | Assignee: | Kyle Banker |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
All |
||
| Issue Links: |
|
||||||||
| Description |
|
In mongo_connect_helper(), there is a file descriptor leak when connect() fails. |
| Comments |
| Comment by Kyle Banker [ 26/Jan/11 ] |
|
Thanks for the report. Going to make the socket timeout a different issue. |
| Comment by auto [ 26/Jan/11 ] |
|
Author: {u'login': u'banker', u'name': u'Kyle Banker', u'email': u'kylebanker@gmail.com'}Message: |
| Comment by nicks [ 19/Jan/11 ] |
|
Note that the proposed patch does not handle Windows properly (should use closesocket() on Windows). Thanks. |