Ticket #2218 enhancement closed fixed
Add timeout to XMPP IQ requests
| Reported by: | ralphm | Owned by: | ralphm |
|---|---|---|---|
| Priority: | highest | Milestone: | Words-0.5 |
| Component: | words | Keywords: | |
| Cc: | ralphm | Branch: | |
| Author: | Launchpad Bug: |
Description
XMPP <iq/> stanzas are designed to have request-response behaviour. The current implementation of t.w.p.j.xmlstream.IQ has a send() method that returns a deferred which fires when a response has been received.
However, if for some reason the other party is too slow or unable to respond, it is desirable to have those deferreds fire with a failure that indicates no response has been received within a configured time period.
Note that the current implementation already fires the deferreds of all pending requests when the XML stream connection has been lost.
Change History
Note: See
TracTickets for help on using
tickets.
