Update change to suppress reporting of Tornado exception error 1 to updated package (ref:hacks.txt).

This commit is contained in:
JackDandy 2016-09-30 23:47:23 +01:00
parent 68446ea5d6
commit 7dcf2022e3
2 changed files with 5 additions and 3 deletions

View file

@ -726,8 +726,9 @@ class HTTP1ServerConnection(object):
# This exception was already logged. # This exception was already logged.
conn.close() conn.close()
return return
except Exception: except Exception as e:
gen_log.error("Uncaught exception", exc_info=True) if 1 != e.errno:
gen_log.error("Uncaught exception", exc_info=True)
conn.close() conn.close()
return return
if not ret: if not ret:

View file

@ -648,7 +648,8 @@ class BaseIOStream(object):
except UnsatisfiableReadError: except UnsatisfiableReadError:
raise raise
except Exception as e: except Exception as e:
gen_log.warning("error on read: %s" % e) if 1 != e.errno:
gen_log.warning("error on read: %s" % e)
self.close(exc_info=True) self.close(exc_info=True)
return return
if pos is not None: if pos is not None: