Summary: | MUC bytestreams may not check if data is successfully sent? | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Will Thompson <will> |
Component: | gabble | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED MOVED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | git master | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | libreoffice-tubes | ||
i915 platform: | i915 features: |
Description
Will Thompson
2012-03-28 05:41:41 UTC
This branch <http://cgit.collabora.com/git/user/wjt/telepathy-gabble/log/?h=47999-handle-ibb-errors> makes the bytestream close up if a stanza gets dropped. There's no test for this in the branch, because I know Jonny has been gutting the tube tests of references to the old API and I don't want to conflict. I tested this by making the test always send back errors for IBB IQs: @@ -664,8 +664,7 @@ class BytestreamIBB(Bytestream): assert ibb_data['sid'] == self.stream_id # ack the IQ - result = make_result_iq(self.stream, ibb_event.stanza) - result.send() + send_error_reply(self.stream, ibb_event.stanza) if len(binary) >= size or size == 0: received = True Before this branch, tubes/accept-private-stream-tube.py (which tells Gabble to send some data down the bytestream, waits for it to arrive, sends back a reply over XMPP and sucks the reply out of Gabble) passes even with this change. With this branch, this change breaks this and other tests, as you would expect. This branch doesn't address MUCs. I could get behind this. r+ Merged. http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=4d9133a523d95207699b3ede02b26e7e2c272fdd Retitling for MUCs maybe having the same issue (which I still haven't really checked.) -- 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-gabble/issues/222. |
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.