Skip to content

Commit adc6b35

Browse files
committed
Catch timeout issue during drain
1 parent 3369ab1 commit adc6b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def serve_forever():
268268
log.info(f"-> {message.function} to peer {connection.get_peername()}")
269269
try:
270270
await connection.send(message)
271-
except (ConnectionResetError, BrokenPipeError, RuntimeError) as e:
271+
except (ConnectionResetError, BrokenPipeError, RuntimeError, TimeoutError) as e:
272272
log.error(
273273
f"Cannot write to {connection}, already closed. Error {e}."
274274
)

0 commit comments

Comments
 (0)