Commit Graph

4129 Commits

Author SHA1 Message Date
Brad Fitzpatrick ba3df9f44c cacher: don't nuke everything on close for now
Change-Id: Ifd210c06b70c411efc7f33daba39c5f105185514
2014-01-31 12:53:10 +01:00
Brad Fitzpatrick 48373fc8a7 camput: clean stale stuf in cachedir on start
Change-Id: Ie7b8d7da49703e5c430b8195202791445223cf25
2014-01-31 12:42:59 +01:00
Brad Fitzpatrick 3e0d6521b8 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-01-31 12:27:18 +01:00
Brad Fitzpatrick ac2bf5f3ca dev: add local.sh script to setup demo environment
Change-Id: I84ed16835dd29a860f09f0040f4d3a146e510aaf
2014-01-31 12:24:30 +01:00
Brad Fitzpatrick bda047eef7 camtool: add env camsrcroot
Change-Id: I701e81ab732d7574a227e8f01ca09ac91c608481
2014-01-31 12:21:04 +01:00
Brad Fitzpatrick 63d4bafd0c cammount: add -term flag, like -xterm but different
Change-Id: Idd81e345c4995a0ee939a2b4fe01d339f44ba526
2014-01-31 12:20:50 +01:00
Brad Fitzpatrick ef1063828b osutil: add DirExists
Change-Id: I3c15cd0bedeffea6d62dffc8603e4e71e57e52af
2014-01-31 12:20:24 +01:00
Brad Fitzpatrick cc4843ed22 devcam: mount: ditch xterm flag
Change-Id: Id0b003698aa28c3c506df8031597c4bd19c034f8
2014-01-31 12:00:42 +01:00
Brad Fitzpatrick 77dd30fbd1 devcam: mount: extra args go before mountpoint
Change-Id: Ibe0686c6e2c847c16b916133edbbb56915ff8ae6
2014-01-31 11:58:42 +01:00
Brad Fitzpatrick e5ad2282c4 fs: cache recent dir for a bit
Change-Id: Id85344038d38dedc134435463d96d8b836edbcd7
2014-01-31 11:50:22 +01:00
Brad Fitzpatrick e2dc7a9256 camput: make uploading a directory tree less verbose. maybe too much.
Change-Id: Ia33588f4adc5af76bdca9ea8d26cec2340a94b30
2014-01-31 11:50:08 +01:00
Brad Fitzpatrick bfa9a17af6 Merge "Added android icons." 2014-01-31 08:42:15 +00:00
Dustin Sallings fff8db88a7 fs: tests for xattr operations
Change-Id: I0501a8ec69fb30df7104b105f8e07a1864d2b5f6
2014-01-30 17:57:32 -08:00
Nick O'Neill 94e347174d Added android icons.
Change-Id: I3535aac02d7f693ed1631e4451a54ce81b109b64
2014-01-30 17:42:26 -08:00
Brad Fitzpatrick 3ea590bc2b dev: add a note about CAMLI_DEFAULT_SERVER
Change-Id: I2351a990c739dc0b84973d0a068e3a86ca3c505b
2014-01-30 17:29:50 +01:00
Brad Fitzpatrick d77426ed6e camput: remove some android TODOs, now done
Change-Id: I206808f59bbf5a8f8dae35586b61180e0d404374
2014-01-30 17:29:41 +01:00
Brad Fitzpatrick 3f27e4f708 Add android camput pre-exit hook.
Change-Id: I30f9771e5562ece6a35d44cc8ab57c305a2899cb
2014-01-30 17:29:28 +01:00
Brad Fitzpatrick 8bc393e978 client/android: track connection closes too
Change-Id: I08b3ddec817fb27e0d52841168492ba510087bf3
2014-01-30 17:19:30 +01:00
Nick O'Neill a68a6b0eb0 Improved logging capture with bugshotkit.
Change-Id: I6230fb68628f9f10185edc2d798b61a36e5541b3
2014-01-29 17:09:46 -08:00
mpl de9e794d01 Merge "website: fix typo in server-config" 2014-01-29 15:41:42 +00:00
mpl 6a3c8e31ff website: fix typo in server-config
Change-Id: I85efb4790e5b93996fed03739397abdf1a86fc2f
2014-01-29 16:40:29 +01:00
Brad Fitzpatrick 58db4305f3 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-01-29 11:33:56 +01:00
Brad Fitzpatrick 2fde1c3632 httputil: make CloseBody more robust
Change-Id: If46c60a5088f57ada45b8aa91ae29c8f512604c7
2014-01-29 11:31:52 +01:00
Brad Fitzpatrick 759f7ead55 Merge "Added a progress bar to the upload notification." 2014-01-29 09:53:03 +00:00
Brad Fitzpatrick 4a74e87454 Merge "Added an icon." 2014-01-29 09:43:21 +00:00
Brad Fitzpatrick 7c3afd2711 httputil: add test for CloseBody
Change-Id: I6049de69279aef7bb0c013935ae4d37b8eaff853
2014-01-28 23:14:02 -08:00
Brad Fitzpatrick eb27581da7 httputil: add DecodeJSON and CloseBody helpers, then use them everywhere
httputil.CloseBody closes a http.Response.Body nicely, such that it's
more likely to be re-used.

httputil.DecodeJSON parses JSON from a Response.Body and closes the
body. It also keeps a temporary copy of the input, for error messages.

Then use them everywhere, to improve HTTP TCP connection re-use.

And misc other clean-ups.

Change-Id: I5dc44be0165b13659459ed29ce5ab44c17d9739f
2014-01-28 22:00:52 -08:00
Brad Fitzpatrick 2a3d84824a jsonsign: update old code to use fmt.Errorf
Change-Id: Iedd969e336dd02af6b3bc60590bfc7aa9ea9c89e
2014-01-28 21:52:36 -08:00
Nick O'Neill 881382bea1 Added an icon.
Change-Id: I4eeac4527868e8955909b742bb176b11b55eaf92
2014-01-28 19:55:14 -08:00
Brad Fitzpatrick 0052ec2366 webserver: also log req.RemoteAddr in verbose mode
Change-Id: I83e2ddcb74208de61d5392a519b69d147f427c1d
2014-01-28 12:31:20 -08:00
Nick O'Neill de16d60d20 Added a progress bar to the upload notification.
Change-Id: Ib373142b3ff60fc73fc82a0c3aa236ba53553bab
2014-01-28 11:25:42 -08:00
Dustin Sallings 6f5b0151f2 client: don't remember discovery errors permanently
fixes camlistore.org/issue/348

Change-Id: I689319cd03dbbcc035698a2ce58d4557c28d9ac0
2014-01-27 16:45:18 -08:00
Brad Fitzpatrick 52a68b9c30 Merge "ui: check for non nil results before using them" 2014-01-28 00:38:38 +00:00
Brad Fitzpatrick a70b554023 pkg/client, camput: don't stat each chunk before uploading
Trust the have cache for skipping uploads.

Reduces total number of HTTP requests.

Also, set Transport's MaxIdleConnsPerHost to be the same as
our HTTP concurrency level, to not keep re-creating TCP
connections.
2014-01-27 16:07:15 -08:00
mpl d4b4194ed0 ui: check for non nil results before using them
http://camlistore.org/issue/352

Change-Id: I321d2bf2a48eed9aa0b9b4f5bf5d630d3741af97
2014-01-28 00:14:20 +01:00
Brad Fitzpatrick 798cd5e9d2 client: use syncutil.Gate instead doing it by hand 2014-01-27 14:08:05 -08:00
Nick O'Neill 27bd0d768f Merge "osx: dmg target" 2014-01-27 19:41:14 +00:00
Brad Fitzpatrick 3d3e702a16 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-01-26 22:05:16 -08:00
Brad Fitzpatrick 0072a5b325 client/android: instrument memory usage.
also try to GC and return memory to OS every 5 seconds, but
that barely makes a dent in the real problem.

more later.

Change-Id: I2979e099121bdcb8578124b1c45714313cc2ec09
2014-01-26 22:05:02 -08:00
Brad Fitzpatrick f4d9fab966 schema: don't use ReceiveBlob directly
Change-Id: I268165cdaa4e4c8fea720a57a58cccc0f934cdf2
2014-01-26 21:56:39 -08:00
Brad Fitzpatrick c97c0d48b3 osutil: add MemUsage func
Change-Id: I4a0cbde782077c5b34caefd9b6bdb99bc659c2c9
2014-01-26 21:56:16 -08:00
Brad Fitzpatrick b15cde9bce Merge "pkg/search: Add durationms to MediaTagConstraint comment." 2014-01-26 18:45:33 +00:00
Daniel Erat ef6e0bc696 pkg/search: Add durationms to MediaTagConstraint comment.
Change-Id: I8c097c2c88afaf01b9eb0f62072f5e68bddf5ca0
2014-01-25 17:22:33 -08:00
Brad Fitzpatrick 1442639257 Merge "Added syncutil.Once" 2014-01-25 22:05:56 +00:00
Dustin Sallings 4fb88a2120 Added syncutil.Once
Change-Id: I83744a3646bac449934ab0dc6477b4dd1c351e5e
2014-01-25 12:04:47 -08:00
Brad Fitzpatrick de99ea69cd Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-01-25 11:04:12 -08:00
Brad Fitzpatrick 92b23e391d search: basic lexer to supported quoted tokens in search expressions
Change-Id: I6c8c37e3b27ab947623bbe7431352a14aa029839
2014-01-25 11:04:02 -08:00
Brad Fitzpatrick 80f6c39c20 Merge "pkg/index: Index audio duration." 2014-01-25 18:42:09 +00:00
Daniel Erat 5603ea8e0d pkg/index: Index audio duration.
Add pkg/media with code to calculate MPEG audio duration.
Index it in a "durationms" property.

Change-Id: Ifb6251657cadc365ef3f5667a0512fde17575560
2014-01-25 10:40:06 -08:00
Brad Fitzpatrick 74479632a2 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-01-25 09:27:00 -08:00