mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Suspend handling of new socket connections while configmanager down
This commit is contained in:
parent
d4c535d038
commit
aa5de3c6a3
@ -141,6 +141,8 @@ def sessionhdl(connection, authname, skipauth=False, cert=None):
|
||||
if 'collective' in response:
|
||||
return collective.handle_connection(connection, cert,
|
||||
response['collective'])
|
||||
while not configmanager.config_is_ready():
|
||||
eventlet.sleep(1)
|
||||
if 'dispatch' in response:
|
||||
dreq = tlvdata.recvall(connection, response['dispatch']['length'])
|
||||
return pluginapi.handle_dispatch(connection, cert, dreq,
|
||||
|
Loading…
Reference in New Issue
Block a user