[SERVER-4866] prevent Socket fd leaks Created: 03/Feb/12  Updated: 11/Jul/16  Resolved: 10/Feb/12

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: 2.0.2
Fix Version/s: 2.1.1

Type: Improvement Priority: Minor - P4
Reporter: Eric Milkie Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-5440 fd leak from opened and unclosed conn... Closed
Participants:

 Description   

Going to make the Socket class call close() in the destructor.
Minor code reorg necessary to make this work – since we currently copy Socket objects around.
Code review has been sent out.



 Comments   
Comment by auto [ 09/Feb/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-4866 include the webserver in our attempt to prevent socket leaks

This fixes httpClientTest
Branch: master
https://github.com/mongodb/mongo/commit/0ada9757bd3b79c19e1d643e53c91be6f5fe2cc0

Comment by auto [ 09/Feb/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-4866 prevent resource leaks by ensuring close() is always called for Socket
Branch: master
https://github.com/mongodb/mongo/commit/0aaf41a410c1b257309dc20be058d1c8a8e33d57

Generated at Thu Feb 08 03:07:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.