mirror of https://github.com/D4-project/d4-core
fix: [server] fix
parent
b37aa38d3b
commit
0a73836fd1
|
@ -118,7 +118,7 @@ class Echo(Protocol, TimeoutMixin):
|
||||||
# Worker: Incorrect type
|
# Worker: Incorrect type
|
||||||
if redis_server_stream.sismember('Error:IncorrectType:{}'.format(data_header['type']), self.session_uuid):
|
if redis_server_stream.sismember('Error:IncorrectType:{}'.format(data_header['type']), self.session_uuid):
|
||||||
self.transport.abortConnection()
|
self.transport.abortConnection()
|
||||||
redis_server_stream.delete(stream_name)
|
redis_server_stream.delete('stream:{}:{}'.format(data_header['type'], self.session_uuid))
|
||||||
redis_server_stream.srem('Error:IncorrectType:{}'.format(data_header['type']), self.session_uuid)
|
redis_server_stream.srem('Error:IncorrectType:{}'.format(data_header['type']), self.session_uuid)
|
||||||
logger.warning('Incorrect type={} detected by worker, uuid={}, session_uuid={}'.format(data_header['type'] ,data_header['uuid_header'], self.session_uuid))
|
logger.warning('Incorrect type={} detected by worker, uuid={}, session_uuid={}'.format(data_header['type'] ,data_header['uuid_header'], self.session_uuid))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue