oberstet/Autobahn — Issue #96: DoS protection: dropping TCP
Author: oberstet
Created: 2012-02-29 08:54:43+00:00
State: open
Labels: bug, websocket

For better DoS protection, use transport.abortConnection() when dropping TCP (i.e. due to protocol failures) .. probably make it an option!

loseConnection() and abortConnection()

http://twistedmatrix.com/documents/current/core/howto/servers.html#auto2

"""abortConnection can be used: it closes the connection immediately, regardless of buffered data that is still unwritten in the transport, or producers that are still registered. Note that abortConnection is only available in Twisted 11.1 and newer."""