Browse Source

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

pull/784/head
JackDandy 9 years ago
parent
commit
7dcf2022e3
  1. 5
      lib/tornado/http1connection.py
  2. 3
      lib/tornado/iostream.py

5
lib/tornado/http1connection.py

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

3
lib/tornado/iostream.py

@ -648,7 +648,8 @@ class BaseIOStream(object):
except UnsatisfiableReadError:
raise
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)
return
if pos is not None:

Loading…
Cancel
Save