diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py
index 648cef64..cc1a2404 100644
--- a/copyparty/httpcli.py
+++ b/copyparty/httpcli.py
@@ -287,7 +287,11 @@ class HttpCli(object):
if not buf:
break
- self.s.send(buf)
+ try:
+ self.s.send(buf)
+ except ConnectionResetError:
+ return False
+ # TODO propagate (self.ok or return)
def tx_mounts(self):
html = self.conn.tpl_mounts.render(this=self)
diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html
index 466b2dec..3ca4356c 100644
--- a/copyparty/web/browser.html
+++ b/copyparty/web/browser.html
@@ -42,6 +42,7 @@
+