Avoid to create the connect timeout task
if the WebSocket object cannot be created.
Merged branch '2.8.x' into 'master'.