From 6530cb6b0504f97b3a3310d83c3398af32b3f7bf Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 16 Dec 2021 22:51:24 +0100 Subject: [PATCH] shut socket on tx error --- copyparty/httpcli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index b9e4612b..eb8adf0a 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -1520,6 +1520,7 @@ class HttpCli(object): if remains > 0: logmsg += " \033[31m" + unicode(upper - remains) + "\033[0m" + self.keepalive = False spd = self._spd((upper - lower) - remains) if self.do_log: