Bug 17090

Summary: Salut and iChat incompatibility when the messaging session is closed
Product: Telepathy Reporter: Alban Crequy <alban.crequy>
Component: salutAssignee: Sjoerd Simons <sjoerd>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: lukas.schneiderbauer
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 35548    
Bug Blocks:    

Description Alban Crequy 2008-08-12 02:36:38 UTC
I can send only one message from Salut to iChat if Salut closes the stream between the 2 messages. Next messages are never sent, although Salut can receive messages from iChat.

The explanation is here:

http://mail.jabber.org/pipermail/standards/2008-August/019514.html
Comment 1 Alban Crequy 2008-08-15 08:50:55 UTC
Sjoerd suggested that Salut should send the closing stanza and then wait until 10 seconds to receive the closing stanza from the remote contact. If the remote contact failed to send the closing stanza, Salut should close the TCP connection.

We may loose a message and this behavior is not compliant to the xep-0174 but if 10 seconds is not enough for the remote client, the remote client is clearly buggy. So this suggested behavior for salut is better than being pedantically xep-0174-compliant and being unable to send any more message to the remote contact.

Maybe 10 seconds is too long? 2 seconds?
Comment 2 Will Thompson 2012-11-16 15:41:01 UTC
This has changed a little with the switch to using WockyMetaPorter.

If you close the Telepathy channel, after a few seconds tries to close the session, and sends </stream:stream>. It gets no reply from iChat, and any messages iChat sends in the meantime are lost. (This is because calling _close_async() on the c2s porter makes it emit ::closing, and porter_closing_cb in meta-porter.c removes all handlers.)

But when you re-request a channel to that contact, WockyMetaPorter happily establishes a new connection, and you can exchange messages again. So the symptom is now:

After closing a channel with an iChat user, Salut cannot receive messages from the iChat user until the channel is reopened.
Comment 3 GitLab Migration User 2019-12-03 19:39:00 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-salut/issues/7.

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.