connectTimeout not working and closing an opened connection
-----------------------------------------------------------
Key: COMETD-370
URL:
http://bugs.cometd.org/browse/COMETD-370
Project: CometD
Issue Type: Bug
Components: websocket-javascript
Affects Versions: 2.4.1
Reporter: Mathieu Carbou
Priority: Blocker
Attachments: connectTimeout-fix.patch
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.
Mat'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://bugs.cometd.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira