~mdw
/
hippotat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not crash on unexpected connectionLost
[hippotat]
/
hippotat
diff --git
a/hippotat
b/hippotat
index
1625628
..
b8477bb
100755
(executable)
--- a/
hippotat
+++ b/
hippotat
@@
-56,9
+56,10
@@
class ResponseConsumer(GeneralResponseConsumer):
self._handleexception()
def connectionLost(self, reason):
self._handleexception()
def connectionLost(self, reason):
- self._log(DBG.HTTP_CTRL, 'connectionLost ' + str(reason))
+ reason_msg = 'connectionLost ' + str(reason)
+ self._log(DBG.HTTP_CTRL, reason_msg)
if not reason.check(twisted.web.client.ResponseDone):
if not reason.check(twisted.web.client.ResponseDone):
- self.
latefailure(
)
+ self.
_latefailure(reason_msg
)
return
try:
self._log(DBG.HTTP, 'ResponseDone')
return
try:
self._log(DBG.HTTP, 'ResponseDone')