Thread
: [SailfishOS]
[CLOSED] Mitakuuluu - indie WhatsApp client for Sailfish - Support thread
View Single Post
malkavian
2014-07-25 , 22:50
Posts: 461 | Thanked: 358 times | Joined on May 2010 @ Bilbao (Basque Country [Spain])
#
1467
Other protocols usually just increase gradually the time between reconnections but never stop trying...
For example you can try the fibonnaci sequence (
https://en.wikipedia.org/wiki/Fibonacci_number
) beggining in the 5th element:
1st connect
If fail -> Wait 5 seconds and try to reconnect
If fail -> Wait 8 seconds and try to reconnect
If fail -> Wait 13 seconds and try to reconnect
...
So in the first minute of fails (counting 3 seconds for try) we will have (3+5+3+8+3+13+3+21 = 59 seconds) 4 reconections, but for having 4 reconnections more we will use: 3+34+3+55+3+89+3= 190 seconds, more than 3 minutes...
Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233...
Vote for this feature/correction here:
https://github.com/CODeRUS/mitakuuluu2/issues/182
Last edited by malkavian; 2014-07-29 at
09:07
.
Quote & Reply
|
malkavian
View Public Profile
Send a private message to malkavian
Find all posts by malkavian