Repository navigation
Prevent socket leak in ThreadSocketHandler. - #4037
Conversation
When we are over our outbound limit ThreadSocketHandler would try to keep the connection if the peer was addnoded. This didn't actually work for two reasons: It didn't actually run the accept code due to mistaken code flow, and because we have a limited number of outbound semaphores it couldn't actually use the connection. Instead it leaked the socket, which might have caused issue #4034. This patch just takes out the non-functioning white-listing for now.
|
I'd like to bring the intended functionality back too but it requires reworking out the outbound semaphores work and I wanted to get a fix up the user reporting 4034 could test. Since it never worked at all, I didn't think adding the functionality was a top priority. |
|
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/0bd05b53b155bc28b6e5dfd967cafaafb44a439f for binaries and test log. |
|
ACK |
1 similar comment
|
ACK |
Prevent socket leak in ThreadSocketHandler.
When we are over our outbound limit ThreadSocketHandler would try to
keep the connection if the peer was addnoded.
This didn't actually work for two reasons: It didn't actually run
the accept code due to mistaken code flow, and because we have a
limited number of outbound semaphores it couldn't actually use the
connection.
Instead it leaked the socket, which might have caused issue #4034.
This patch just takes out the non-functioning white-listing for now.