+++ This bug was initially created as a clone of Bug #24135 +++
If you send <stream:stream ...> to a server, and it never answers, the connection never fails. This can happen if you're on one of those free access points that needs you to sign in with a browser first. My timeout-connect branch against 0.8 fixes this.
I didn't apply the fix or the test — which was merged to 0.8 as <http://git.collabora.co.uk/?p=telepathy-gabble.git;a=commit;h=a0a6a4313c4cd754> — to master, because presumably Wocky should do this for us.