Ensuring drop reason always gets propogated
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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:
|
||||
|
Reference in New Issue
Block a user