Permalink
Browse files

Shut down socket when closing connections.

This appears to fix the lingering-connection bug.
  • Loading branch information...
1 parent 977f085 commit 429e0f145d34fd10e0e17a6ec65c612b25b154ad @CFSworks CFSworks committed Nov 3, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 minerutil/RPCProtocol.py
View
@@ -52,6 +52,7 @@ def doRequest(self, *args):
def closeConnection(self):
if self.connection is not None:
+ self.connection.sock.shutdown(socket.SHUT_RDWR)
self.connection.close()
if self.__response is not None:
self.__response.close()

0 comments on commit 429e0f1

Please sign in to comment.