Permalink
Browse files

Ensuring drop reason always gets propogated

  • Loading branch information...
ashafer01 committed May 13, 2017
1 parent 56ae577 commit 8e093d1a9ea32c7f3fc966a6715f13a0a6594377
Showing with 4 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +1 −1 autobahn/websocket/protocol.py
View
@@ -35,3 +35,6 @@ node.key
/.pydevproject
/.venv/
/my_tests/
*.swp
*.swo
*.swn
@@ -868,7 +868,7 @@ def _fail_connection(self, code=CLOSE_STATUS_CODE_GOING_AWAY, reason=u'going awa
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:

0 comments on commit 8e093d1

Please sign in to comment.