[CSHARP-1704] TcpStreamFactory is leaking socket handlers on exception Created: 12/Jul/16 Updated: 23/Sep/16 Resolved: 10/Aug/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Connectivity, Error Handling |
| Affects Version/s: | 2.2.4 |
| Fix Version/s: | 2.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | ar?nas | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 2012\2008 server |
||
| Description |
|
TcpStreamFactory both connect methods throw exception without disposing socket. Sockets collect in finalizer queue and stays there. After some time undisposed sockets consume all ephemeral ports. Connect 103 line. Can be reproduced with this snippet:
|
| Comments |
| Comment by Githook User [ 11/Aug/16 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Githook User [ 11/Aug/16 ] |
|
Author: {u'username': u'floatas', u'name': u'floatas', u'email': u'floatas@outlook.com'}Message: |
| Comment by Githook User [ 10/Aug/16 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Githook User [ 10/Aug/16 ] |
|
Author: {u'username': u'floatas', u'name': u'floatas', u'email': u'floatas@outlook.com'}Message: |