mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 07:21:46 +00:00
Update server.py
This commit is contained in:
parent
a50edb3c77
commit
50265ad56b
|
@ -139,6 +139,10 @@ def conn_string(conn: socket.socket, data: bytes, addr: bytes):
|
|||
return True
|
||||
return False
|
||||
|
||||
# debugging
|
||||
logger.debug("@", addr)
|
||||
logger.debug(">", data)
|
||||
|
||||
# JSON-RPC 2.0 request over Socket (stateful)
|
||||
if data.find(b"{") == 0 and process_jsonrpc2(data):
|
||||
# will be close by the client
|
||||
|
|
Loading…
Reference in New Issue
Block a user