[Standards] Reply stream in Bosh

Fabio Forno fabio.forno at gmail.com
Sat Mar 29 23:45:44 UTC 2008


On Sun, Mar 30, 2008 at 12:11 AM, Karsten Becker
<jabber at karsten-becker.de> wrote:
> Hi,
>  I am currently implementing a J2ME Bosh client and I did not see this
>  specified. Assume non pipelined mode.
>  Assume I have a pending request and my local client wants to send a
>  message. It opens a new request and sends the message. What happens to
>  the reply?
>  Should the reply come back on the pending request or the new request?
>  I think that it would make sense if the newly created request does not
>  become a response. This way it could be a fire and forget thing.
>  Otherwise the client will be waiting on the old stream for a response
>  when there will be none.

If you have "hold" set to 1 (no pipelining), as soon as the server
receives your second request, it sends back the reply to the first
pending request, and the second is kept open.

-- 
Fabio Forno, Ph.D.
Bluendo srl http://www.bluendo.com
jabber id: ff at jabber.bluendo.com



More information about the Standards mailing list