cometd/cometd — pull request #8 by mathieucarbou (2012-05-07 16:14:43+00:00)
Title: Fix connectTimeout implementation for websocket

The code which supports the connectTimeout miss some checks thus it closes the webcocket connection event if it is successfully opened.

To reproduce, just put a connectTimeout of 2 seconds for example and you'll see the connnection closing after 2 seconds.

Here is an attached patch which fixes the issue.