Close CLOSE_WAIT sockets (#610)#1086
Conversation
* Enable checking and closing CLOSE_WAIT sockets in xmlrpcapi
* Enable checking and closing CLOSE_WAIT sockets
|
The pull request #834 already tries to address the problem described in the issue. The complexity of changes has so far prevented the previous pull request to be merged. Maybe @mgrrx @mikepurvis @jspricke @furushchev can comment here how this patch interacts with the existing PR. |
|
This is more elegant way to close |
|
Thanks for your comments and feedback. @furushchev For anyone who is interested in testing this, I prepared the branch to close |
I created #1104 from that branch. This looks very promising since it seems to resolve the current problem as well as does it in a very "simple" way which should not introduce any side effects. |
|
@dirk-thomas Thank you very much for moving this forward. |
|
Thank you for coming up with this much simpler patch! |
Hi,
I'm having the same issue as in #610 and I found that some of the sockets in caches of ServerProxy(
_proxies) are remained CLOSE_WAIT when a slave(xmlrpc server) close its port suddenly.I added a function to close all the CLOSE_WAIT sockets in caches(f06bdf1), made it an option to call the function in
xmlrpcapi(d3e7921) and added--close-socketsoption to roscore(00d8f73).I think calling the
close_half_closed_socketsperiodically is enough, but I couldn't find the right way so I call it inxmlrpcapi.I'm happy if closing CLOSE_WAIT sockets is enabled by default, could you review this and sugget a better way?
Thanks in advance.