mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-22 20:47:57 +01:00
3582de0654
From XEP-198: Stream Management § 4. Acks: """ Note: There are two values of 'h' for any given stream: one maintained by the client to keep track of stanzas it has handled from the server, and one maintained by the server to keep track of stanzas it has handled from the client. The client initializes its value to zero when it sends <enable/> to the server, and the server initializes its value to zero when it sends <enabled/> to the client (it is expected that the server will respond immediately to <enable/> and set its counter to zero at that time). """ Previously smack initialized both to 0 just before sending enabled. But according to the note from XEP-198 the server's counter is initialized by the server "when it sends <enabled/> to the client, so we need to set clientHandledStanzasCount to 0 when we receive <enabled/>. Because the server started counted right after he send <enabled/>. Thanks to Kim "zash" Alvefur for pointing this out. |
||
---|---|---|
.. | ||
src | ||
build.gradle |