This commit is contained in:
Davte 2020-04-19 20:00:29 +02:00
parent 8b07741c59
commit 25cf7271f4

View File

@ -91,10 +91,9 @@ class Server:
break
except Exception as e:
logging.error(f"Unexpected exception:\n{e}", exc_info=True)
print(received_bytes)
print(f"received_bytes: {received_bytes}")
async def run_writer(self, writer, connection_token):
print("ERRRR")
consecutive_interruptions = 0
errors = 0
r = 0
@ -113,7 +112,7 @@ class Server:
consecutive_interruptions = 0
r += len(input_data)
if not input_data:
print(r)
print(f"Sent bytes: {r}")
break
try:
writer.write(input_data)