frakbot / FWeather

A weather widget for Android based upon Tobias van Scheider's Authentic Weather design.
https://play.google.com/store/apps/details?id=net.frakbot.FWeather
91 stars 34 forks source link

Add a retry mechanism for the updates #87

Closed rock3r closed 10 years ago

rock3r commented 10 years ago

When the updates fail because of network issues, the widget should retry after a short wait for a certain number of times before giving up.

rock3r commented 10 years ago

This should further help working around issues #85 and #86

rock3r commented 10 years ago

I'd add: force closing and opening a new connection. This should fix any further issue with ECONNRESET.

frapontillo commented 10 years ago

This will include a cache overhaul: cache must expire.

rock3r commented 10 years ago

Cache expires after 2 hours. Or, at least, it's supposed to.

frapontillo commented 10 years ago

I have put the timeout to 1 ms and it keeps on getting the same information.

rock3r commented 10 years ago

That's strange, it used to work at one point. Who knows...

frapontillo commented 10 years ago

Can confirm it's working. I propose clearing the cache when the user explicitly requests an update by tapping on the refresh button. Agreed?

rock3r commented 10 years ago

Agreed!