facebook/tornado — pull request #910 by Caligatio (2013-10-08 20:28:05+00:00)
Title: Fixed WebSocketClient connections not closing on initial connection failure

When I attempted to connect a WebSocketClient to a known closed port, the connect would wait the full connection_timeout before failing instead of immediately failing. The WebSocketClient class is overriding the base simple_httpclient._HTTPConnection _on_close() without providing the needed functionality.