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):
139139 if data :
140140 try :
141141 await self .socket .sendall (data )
142- except (OSError , asyncio .CancelledError ) as error :
142+ except (
143+ OSError , SocketDeadlineExceeded , asyncio .CancelledError
144+ ) as error :
143145 await AsyncUtil .callback (self .on_error , error )
144146 return False
145147 self ._clear ()
Original file line number Diff line number Diff line change @@ -139,7 +139,9 @@ def flush(self):
139139 if data :
140140 try :
141141 self .socket .sendall (data )
142- except (OSError , asyncio .CancelledError ) as error :
142+ except (
143+ OSError , SocketDeadlineExceeded , asyncio .CancelledError
144+ ) as error :
143145 Util .callback (self .on_error , error )
144146 return False
145147 self ._clear ()
You can’t perform that action at this time.
0 commit comments