Bug 327651

Summary: Reconnecting after network error
Product: [Applications] trojita Reporter: Jan Kundrát <jkt>
Component: CoreAssignee: Trojita default assignee <trojita-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: git   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jan Kundrát 2013-11-15 13:34:21 UTC
Presently, any form of network error causes Trojita to go offline. This can be annoying when on e.g. a flaky WiFi. It would be cool to have some support for "smart reconnecting", i.e. trying to reconnect when the connection was dropped etc.
Comment 1 Jan Kundrát 2014-05-28 10:23:28 UTC
Git commit 7708aaa7fda2877a868a542e9a1335683c9cbdb7 by Jan Kundrát, on behalf of Karan Luthra.
Committed on 11/05/2014 at 11:13.
Pushed by jkt into branch 'master'.

Make attempts to reconnect after a network error

After switching to offline mode due to a network error, the model tries to
reconnect repeatedly, with increasing timeouts.  This is done until either
trojita gets a working connecton, or reconnect attempts are aborted by choosing
network:offline in the menu.
REVIEW: 118079

M  +31   -4    src/Gui/Window.cpp
M  +6    -0    src/Gui/Window.h
M  +1    -0    src/Imap/Model/Model.h
M  +46   -0    src/Imap/Model/NetworkWatcher.cpp
M  +19   -0    src/Imap/Model/NetworkWatcher.h

http://commits.kde.org/trojita/7708aaa7fda2877a868a542e9a1335683c9cbdb7