<div>For reliability requirements over wireless connections: don't use BOSH; do use Stream Management (XEP-0198)<br/>
<br/>
<font color="#4c33e5"><a href="https://me.uni.kn/marcel.waldvogel"><font color="#4c33e5"><a href="https://me.uni.kn/marcel.waldvogel">-Marcel Waldvogel</a></font></a></font><br/><br/>-----Original Message-----<br/>From: andrezda10@yandex.com<br/>To: Jabber/XMPP software development list <jdev@jabber.org><br/>Sent: Fr., 01 Juli 2016 16:02<br/>Subject: Re: [jdev] Message sending performance XEP-0124<br/><br/></div>I have seen (mainly in wireless devices or situations) that sometimes<br/>
things are simply lost. Specifically, a message sent from A to B, but B<br/>
have not seen it and will not. In situations of "not so good" connection,<br/>
this is more frequent. In such situation I have seen that a probably good<br/>
solution is to repeat messages, requests or whatever applies.<br/>
<br/>
In chats this sometimes leads to repeated sentences, acceptably. In other<br/>
situations this may lead us to smaller waiting periods (since we won't<br/>
have to wait the *maximum* timeouts, which are usually much higher than<br/>
the periods we need to know that it is *much probably a lost message*.<br/>
<br/>
<br/>
-=-=-=-=-= Certo dia, Marcel Waldvogel escreveu: =-=-=-=-=-<br/>
> "4. The BOSH Technique" says:<br/>
> "If the client has data to send while a request is still open, it<br/>
> establishes a second socket connection to the connection manager to<br/>
> send a new request. The connection manager immediately responds to the<br/>
> previously held request (possibly with no data) and holds open this new<br/>
> request. This results in the connections switching roles; the "old"<br/>
> connection is responded to and left awaiting new requests, while the<br/>
> "new" connection is now used for the long polling loop."<br/>
> So if you know that there are other messages pending at the client, do<br/>
> not use hold/wait until your sending queue is empty. If during a hold,<br/>
> the client needs to send a new message, open/reuse the secondary<br/>
> connection, if it needs to be sent before the wait interval has<br/>
> expired.<br/>
> -Marcel<br/>
> On Fre, 2016-07-01 at 15:46 +0530, Vaibhav Ranglani wrote:<br/>
>> Hello devs,<br/>
>><br/>
>> I am implementing a custom solution in XMPP.<br/>
>><br/>
>> During the session creation request, the client sends a session<br/>
>> creation request as follows.<br/>
>><br/>
>> <body content='text/xml; charset=utf-8'<br/>
>> from='<a href="mailto:user@example.com">user@example.com</a>'<br/>
>> hold='1'<br/>
>> rid='1573741820'<br/>
>> to='<a href="http://example.com">example.com</a>'<br/>
>> route='xmpp:<a href="http://example.com:9999">example.com:9999</a>'<br/>
>> ver='1.6'<br/>
>> wait='60'<br/>
>> ack='1'<br/>
>> xml:lang='en'<br/>
>> xmlns='<a href="http://jabber.org/protocol/httpbind">http://jabber.org/protocol/httpbind</a>'/>;<br/>
>><br/>
>><br/>
>> In this request, the hold attribute is specified as 1. <br/>
>> Due to this the issue I am encountering is that I am able to send<br/>
>> only 1 message per minute.<br/>
>><br/>
>> Can I specify a value of 30-40 for hold variable. If yes, then what<br/>
>> will be the performance ramifications of this?<br/>
>><br/>
>> Regards<br/>
>> Vaibhav<br/>
<br/>
<br/>
_______________________________________________<br/>
JDev mailing list<br/>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev">http://mail.jabber.org/mailman/listinfo/jdev</a><br/>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a><br/>
_______________________________________________<br/>