Merge pull request #837 from ashafer01/master
Ensuring drop reason always gets propogated
This commit is contained in:
commit
8fdaaf2f28
|
@ -35,3 +35,6 @@ node.key
|
|||
/.pydevproject
|
||||
/.venv/
|
||||
/my_tests/
|
||||
*.swp
|
||||
*.swo
|
||||
*.swn
|
||||
|
|
|
@ -868,7 +868,7 @@ class WebSocketProtocol(object):
|
|||
if self.failByDrop:
|
||||
# brutally drop the TCP connection
|
||||
self.wasClean = False
|
||||
self.wasNotCleanReason = u'I failed the WebSocket connection by dropping the TCP connection'
|
||||
self.wasNotCleanReason = u'I dropped the WebSocket TCP connection: {0}'.format(reason)
|
||||
self.dropConnection(abort=True)
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue