From aa7f0845ccab6b8a5bd9bf3c14280adcdca13c62 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 31 Jan 2019 16:03:28 -0500 Subject: [PATCH] catch sendfile errors --- lbrynet/blob_exchange/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/blob_exchange/server.py b/lbrynet/blob_exchange/server.py index b77fd40a4..0ddcbc875 100644 --- a/lbrynet/blob_exchange/server.py +++ b/lbrynet/blob_exchange/server.py @@ -60,7 +60,7 @@ class BlobServerProtocol(asyncio.Protocol): log.info("send %s to %s:%i", blob.blob_hash[:8], peer_address, peer_port) try: sent = await blob.sendfile(self) - except ConnectionResetError: + except (ConnectionResetError, BrokenPipeError, RuntimeError, OSError): return log.info("sent %s (%i bytes) to %s:%i", blob.blob_hash[:8], sent, peer_address, peer_port) if responses: