From d2815bfbefb9527eacb5920ef983c881785c4723 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 12 Apr 2014 18:40:42 -0400 Subject: devblog --- .../day_152__more_ssh_connection_caching.mdwn | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/devblog/day_152__more_ssh_connection_caching.mdwn (limited to 'doc/devblog') diff --git a/doc/devblog/day_152__more_ssh_connection_caching.mdwn b/doc/devblog/day_152__more_ssh_connection_caching.mdwn new file mode 100644 index 000000000..8edb885d2 --- /dev/null +++ b/doc/devblog/day_152__more_ssh_connection_caching.mdwn @@ -0,0 +1,33 @@ +Made ssh connection caching be used in several more places. `git annex +sync` will use it when pushing/pulling to a remote, as will the assistant. +And `git-annex remotedaemon` also uses connection caching. So, when +a push lands on a ssh remote, the assistant will immediately notice it, and +pull down the change over the same TCP connection used for the +notifications. + +This was a bit of a pain to do. Had to set `GIT_SSH=git-annex` and then +when git invokes git-annex as ssh, it runs ssh with the connection caching +parameters. + +Also, improved the network-manager and wicd code, so it detects when a +connection has gone down. That propigates through to the remote-daemon, +which closes all ssh connections. I need to also find out how to detect +network connections/disconnections on OSX.. + +Otherwise, the remote-control branch seems ready to be merged. But I want +to test it for a while first. + +---- + +Followed up on yesterday's bug with writing some test cases for +Utility.Scheduled, which led to some more bug fixes. Luckily nothing +I need to rush out a release over. In the end, the code got a lot +simpler and clearer. + +[[!format haskell """ +-- Check if the new Day occurs one month or more past the old Day. +oneMonthPast :: Day -> Day -> Bool +new `oneMonthPast` old = fromGregorian y (m+1) d <= new + where + (y,m,d) = toGregorian old +"""]] -- cgit v1.2.3