Important msn-pecan bug-fix for battery drain

Hi,

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:

  1. You have a pending offline message
  2. 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;

I wish I had caught this problem earlier to save people’s batteries. Oh well, the fix is already in Maemo extras-testing (telepathy-msn-pecan 0.1.0-0maemo3), please give it a try and vote.

About these ads

4 thoughts on “Important msn-pecan bug-fix for battery drain

  1. Thanks for the update and pushing a fixed package.

    Just curious, any plans on supporting MSNP16 when/if libpurple does? Specifically, MPOP.

    Great work, the reason I use PECAN over the other plugins – is basically because of you.

  2. @simon it’s planned, but will require quite a bit of changes.

    It seems there are more and more request that require a newer MSNP, so I’m strongly consider working on it soon.

  3. What about data usage? I just got back from vacation without this bug being fixed. Hope I didn’t burn too much. Thanks a lot for fixing it btw!

  4. Pingback: Pinguins Móveis » Blog Archive » Pinguins de segunda

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s