Skip to content

Commit

Permalink
gravelrpc: REUSE_ADDR
Browse files Browse the repository at this point in the history
  • Loading branch information
zielmicha committed Aug 30, 2013
1 parent 1a984ef commit dda5fc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gravelrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ def server_bind(self):

class ThreadingSSLServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer):
key = 'example.pem'
allow_reuse_address = True

def server_bind(self):
self.socket = ssl.wrap_socket(self.socket, certfile=self.key, server_side=True)
SocketServer.TCPServer.server_bind(self)
self.socket = ssl.wrap_socket(self.socket, certfile=self.key, server_side=True)

class RPCHandler(SocketServer.StreamRequestHandler):
allow_fd_passing = False
Expand Down

0 comments on commit dda5fc8

Please sign in to comment.