Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve connection backoff logic in xmpp client
Do not reset the connection attempts counter immediately on reaching Established state. Do it only after 3 keepalives have been received. This ensures that the client backs off it's connection attempts even for cases where the state machine goes to Established, but then goes down right away. For example, when the server closes the connection because some higher level requirement is not satisfied. Change-Id: Ie6d68c1bef910faf3b7b6adc7a236127ffc9a0ea Closes-Bug: 1488636
- Loading branch information
Nischal Sheth
committed
Aug 27, 2015
1 parent
c431384
commit c68a7b8
Showing
3 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters