Merge pull request #837 from ashafer01/master

Ensuring drop reason always gets propogated
This commit is contained in:
Tobias Oberstein 2017-05-14 09:31:05 +02:00 committed by GitHub
commit 8fdaaf2f28
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: