git-annex/Assistant/Threads
Joey Hess 183f7355cd global webapp redirects, to finish upgrades
When an automatic upgrade completes, or when the user clicks on the upgrade
button in one webapp, but also has it open in another browser window/tab,
we have a problem: The current web server is going to stop running in
minutes, but there is no way to send a redirect to the web browser to the
new url.

To solve this, used long polling, so the webapp is always listening for
urls it should redirect to. This allows globally redirecting every open
webapp. Works great! Tested with 2 web browsers with 2 tabs each.
May be useful for other purposes later too, dunno.

The overhead is 2 http requests per page load in the webapp. Due to yesod's
speed, this does not seem to noticibly delay it. Only 1 of the requests
could possibly block the page load, the other is async.
2013-11-23 14:47:38 -04:00
..
Committer.hs hlint 2013-10-02 22:59:07 -04:00
ConfigMonitor.hs update for LsTree type change 2013-10-17 14:51:39 -04:00
Cronner.hs webapp: remind user when using repositories that lack consistency checks 2013-10-29 16:50:38 -04:00
DaemonStatus.hs webapp: Fix a race that sometimes caused alerts or other notifications to be missed if they occurred while a page was loading. 2013-03-27 14:56:20 -04:00
Glacier.hs hlint 2013-10-02 22:59:07 -04:00
Merger.hs hlint 2013-10-02 22:59:07 -04:00
MountWatcher.hs webapp: remind user when using repositories that lack consistency checks 2013-10-29 16:50:38 -04:00
NetWatcher.hs upgrade alerts 2013-11-21 17:49:56 -04:00
PairListener.hs Improve local pairing behavior when two computers both try to start the pairing process separately. 2013-11-02 15:10:29 -04:00
ProblemFixer.hs webapp: remind user when using repositories that lack consistency checks 2013-10-29 16:50:38 -04:00
Pusher.hs automatically launch git repository repair 2013-10-27 16:42:13 -04:00
SanityChecker.hs log missing index at notice priority 2013-11-13 14:42:59 -04:00
TransferPoller.hs remove debug 2013-04-11 16:36:45 -04:00
Transferrer.hs assistant: Support repairing git remotes that are locally accessible 2013-10-27 15:38:59 -04:00
TransferScanner.hs hlint 2013-10-02 22:59:07 -04:00
TransferWatcher.hs moved code out of webapp 2013-10-26 16:58:16 -04:00
Upgrader.hs assistant restart on upgrade 2013-11-22 23:12:06 -04:00
UpgradeWatcher.hs global webapp redirects, to finish upgrades 2013-11-23 14:47:38 -04:00
Watcher.hs assistant: Notice on startup when the index file is corrupt, and auto-repair. 2013-11-13 14:27:17 -04:00
WebApp.hs upgrade alerts 2013-11-21 17:49:56 -04:00
XMPPClient.hs add config page for fsck, and alert with button when a fsck is running 2013-10-10 18:05:53 -04:00
XMPPPusher.hs add two long-running XMPP push threads, no more inversion of control 2013-05-22 15:13:31 -04:00