Ensuring drop reason always gets propogated

This commit is contained in:
Alex Shafer
2017-05-13 12:25:09 -07:00
parent 56ae5776f3
commit 8e093d1a9e
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@@ -35,3 +35,6 @@ node.key
/.pydevproject
/.venv/
/my_tests/
*.swp
*.swo
*.swn

View File

@@ -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: