Bug 48050

Summary: Doesn't signal peer if local SOCKS5 bytestream preparation fails
Product: Telepathy Reporter: Will Thompson <will>
Component: gabbleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: will
Version: git masterKeywords: patch
Hardware: Other   
OS: All   
URL: http://cgit.collabora.com/git/user/wjt/telepathy-gabble/log/?h=48050-fallback
Whiteboard:
i915 platform: i915 features:

Description Will Thompson 2012-03-29 08:07:31 UTC
While testing tubes using an XMPP server on localhost without a network connection, I found that the initiator neither falls back to in-band bytestreams upon discovering that there are no (non-loopback) local interfaces, not signals the recipient to say that the channel is dead.

Thus began a journey through the hairier corners of SI and the bytestream code, culminating in a standards-incompliant fix for this edge case.
Comment 1 Will Thompson 2012-03-29 08:09:10 UTC
Reassuring diffstat; extensive commit messages.

% git diff --stat 47999-handle-ibb-errors..48050-fallback
 src/bytestream-factory.c |   92 ++++++++----------------
 src/bytestream-factory.h |    6 +-
 src/bytestream-socks5.c  |  176 ++++++++++++++++++++++++++--------------------
 src/ft-channel.c         |   15 ++---
 src/tube-dbus.c          |   11 +---
 src/tube-stream.c        |   13 +---
 6 files changed, 145 insertions(+), 168 deletions(-)
Comment 2 Will Thompson 2012-11-05 14:02:26 UTC
hai?

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.