Skip to content

Commit

Permalink
Merge pull request #376 from brendongo/mutable-shared-list
Browse files Browse the repository at this point in the history
Fixed mutable object used as kwarg for Server ctor
  • Loading branch information
comrumino authored Mar 12, 2020
2 parents 01c8e83 + 0ee95e6 commit 7c3ca63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rpyc/utils/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Server(object):

def __init__(self, service, hostname="", ipv6=False, port=0,
backlog=socket.SOMAXCONN, reuse_addr=True, authenticator=None, registrar=None,
auto_register=None, protocol_config={}, logger=None, listener_timeout=0.5,
auto_register=None, protocol_config=None, logger=None, listener_timeout=0.5,
socket_path=None):
self.active = False
self._closed = False
Expand All @@ -60,6 +60,10 @@ def __init__(self, service, hostname="", ipv6=False, port=0,
self.auto_register = bool(registrar)
else:
self.auto_register = auto_register

if protocol_config is None:
protocol_config = {}

self.protocol_config = protocol_config
self.clients = set()

Expand Down

0 comments on commit 7c3ca63

Please sign in to comment.