List Info

Thread: Reply stream in Bosh




Reply stream in Bosh
country flaguser name
Sweden
2008-03-29 18:11:35
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.

Karsten

Re: Reply stream in Bosh
user name
2008-03-29 18:45:44
On Sun, Mar 30, 2008 at 12:11 AM, Karsten Becker
<jabberkarsten-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: ffjabber.bluendo.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )