I have been baffled by this bug report that appears in the logs as a constant reconnection, but everything seems to be working fine, except that network usage goes to the roof (as long as battery drain).
Finally, I was able to reproduce and hunt down the problem, and I found it would only happen if:
- You have a pending offline message
- You are on Daylight Savings Time
Then, msn-pecan will be stuck in a loop trying to authenticate to retrieve the offline message, but thought the token was already expired =/
That’s why even though nothing changed in msn-pecan for the past months, users suddenly started to notice weird battery drain.
The fix, is this humongous patch:
- tm.tm_isdst = -1;
+ tm.tm_isdst = 0;