# HG changeset patch # User mpm@selenic.com # Date 1125132910 25200 # Node ID 3a1a46dcd3978a790f4c56486124880dbefeb1d4 # Parent 50a8acefb53d86de001325fc551fcb2241747697 hgweb: add catch for connection reset suggested by Jeff Sipek diff -r 50a8acefb53d -r 3a1a46dcd397 mercurial/hgweb.py --- a/mercurial/hgweb.py Sat Aug 27 01:50:18 2005 -0700 +++ b/mercurial/hgweb.py Sat Aug 27 01:55:10 2005 -0700 @@ -73,7 +73,11 @@ for part in thing: write(part) else: - sys.stdout.write(str(thing)) + try: + sys.stdout.write(str(thing)) + except socket.error, x: + if x[0] != errno.ECONNRESET: + raise class templater: def __init__(self, mapfile, filters={}, defaults={}):