On Tuesday 31 March 2009 08:44:41 Fabio Forno wrote:
> On Tue, Mar 31, 2009 at 5:31 PM, Justin Karneges
>
> <justin-keyword-jabber.093...@affinix.com> wrote:
> > C: <message/>
> > C: <message/>
> > C: <message/>
> > C: <r/> (when S receives this element, it knows 'u' is 3)
> >
> > S: <a h='3'/>
>
> Yep but if the client doesn't receive the h='3' the only safe decision
> is to to resend all the 3 messages, while any number of them could
> have been already processed and delivered to the correct recipient. If
> the message itself contained the sequence number the server would be
> able to discard duplicates.

When the session is resumed, the server will state its last 'h' value.  If the 
server had received all three message stanzas, then the value it will use 
during the resume is '3'.  If it only received one, then it would put '1'.  
The client will only resend what the server didn't get.

-Justin

Reply via email to