File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,9 @@ async def flush(self):
139
139
if data :
140
140
try :
141
141
await self .socket .sendall (data )
142
- except (OSError , asyncio .CancelledError ) as error :
142
+ except (
143
+ OSError , SocketDeadlineExceeded , asyncio .CancelledError
144
+ ) as error :
143
145
await AsyncUtil .callback (self .on_error , error )
144
146
return False
145
147
self ._clear ()
Original file line number Diff line number Diff line change @@ -139,7 +139,9 @@ def flush(self):
139
139
if data :
140
140
try :
141
141
self .socket .sendall (data )
142
- except (OSError , asyncio .CancelledError ) as error :
142
+ except (
143
+ OSError , SocketDeadlineExceeded , asyncio .CancelledError
144
+ ) as error :
143
145
Util .callback (self .on_error , error )
144
146
return False
145
147
self ._clear ()
You can’t perform that action at this time.
0 commit comments