mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 15:31:45 +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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# debugging
|
||||||
|
logger.debug("@", addr)
|
||||||
|
logger.debug(">", data)
|
||||||
|
|
||||||
# JSON-RPC 2.0 request over Socket (stateful)
|
# JSON-RPC 2.0 request over Socket (stateful)
|
||||||
if data.find(b"{") == 0 and process_jsonrpc2(data):
|
if data.find(b"{") == 0 and process_jsonrpc2(data):
|
||||||
# will be close by the client
|
# will be close by the client
|
||||||
|
|
Loading…
Reference in New Issue
Block a user