Bug 25001 - Time out connection process after a minute (or so)
Summary: Time out connection process after a minute (or so)
Status: NEW
Alias: None
Product: Wocky
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Sjoerd Simons
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 24353
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-09 10:37 UTC by Will Thompson
Modified: 2010-11-20 05:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Will Thompson 2009-11-09 10:37:12 UTC
+++ This bug was initially created as a clone of Bug #24353 +++

Wocky should probably give up after a while if the connection process isn't going anywhere.

Gabble does this in 0.8, but not in 0.9 because I think the XMPP library should do it.
Comment 1 Nicolas Dufresne 2010-09-23 11:47:19 UTC
One option would be to use new GLib method g_socket_set_timeout(). The GSocket object can be retrieved from the GSocketConnection.

Second option would be to do nothing and let Gabble use a GCancellable along with g_timeout_add().

Any preferences ?
Comment 2 Will Thompson 2010-11-20 05:42:52 UTC
> One option would be to use new GLib method g_socket_set_timeout(). The GSocket
> object can be retrieved from the GSocketConnection.

Unfortunately this isn't enough for some cases. I've seen captive portals that "accept" the XMPP connection, happily read the data we send, and drop it on the floor. So we need to use a higher-level timeout.

> Second option would be to do nothing and let Gabble use a GCancellable along
> with g_timeout_add().

I think the library should do this, particularly since it's made more complicated by our support for interactive authentication...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.