Commit Graph

3162 Commits

Author SHA1 Message Date
Matt Bell
cea68afa2e core/corehttp: Handle Etag for caching 2015-01-28 16:50:16 -08:00
Matt Bell
fb986fd822 core/corehttp: Added cache headers to gatewayy requests 2015-01-28 16:48:07 -08:00
Matt Bell
2028d37076 test/sharness: Added basic gateway tests 2015-01-28 16:46:00 -08:00
Matt Bell
e4eb964f69 core/corehttp: Use consts for path prefixes 2015-01-28 16:43:45 -08:00
Matt Bell
2759d1c126 core/corehttp: Added handling of /ipns/<hash>/x paths 2015-01-28 16:38:36 -08:00
Matt Bell
950e492fc4 core/corehttp: Close DAGReaders when done 2015-01-28 16:01:42 -08:00
Matt Bell
58d401c3b0 core/corehttp: gateway_handler: Redirect to path with trailing slash when showing a directory's index.html 2015-01-28 16:01:42 -08:00
Matt Bell
df97b968a1 cmd/ipfs: Add empty gateway object when initting config 2015-01-28 16:01:42 -08:00
Matt Bell
7c5b276179 cmd/ipfs: daemon: Added root redirect handler to corehttp options (for both gateway and API) 2015-01-28 16:01:42 -08:00
Matt Bell
47774c5311 repo/config: Added Gateway options to config 2015-01-28 16:01:42 -08:00
Matt Bell
e2be5c2039 core/corehttp: Added RedirectOption 2015-01-28 16:01:41 -08:00
Matt Bell
b8fcece0e5 core/corehttp: Handle IPNS paths in gateway 2015-01-28 16:01:41 -08:00
Matt Bell
d338a81eca core/corehttp: Support Range requests in gateway handler 2015-01-28 15:49:55 -08:00
Juan Batiz-Benet
81bb548d23 p2p/net/swarm: fix TestDialBackoff
- attempts set to 1 now.
- timeouts must account for that.
2015-01-28 15:49:54 -08:00
Juan Batiz-Benet
9959775ff7 Merge pull request #684 from jbenet/fuse-emancipation
fuse: no longer require fuse to compile ipfs
2015-01-28 13:25:23 -08:00
Jeromy
72a5902e12 address concerns from PR 2015-01-28 19:36:30 +00:00
Jeromy
f1267d0624 change ipns resolve/publish to store raw keys, not b58 encoded 2015-01-28 19:36:30 +00:00
Juan Batiz-Benet
7ae3706b6d fuse: no longer require fuse to compile ipfs
This commit removes the dependency on go-fuse-version, and thus the
fuse headers. It also introduces an elaborate troubleshooting process
that diagnoses whether fuse installed -- and which version -- with as
little requirements as possible (attept to use sysctl, fall-back on
the go-fuse-version binary, etc). It then nicely instructs the user
what to do next.
2015-01-28 05:18:41 -08:00
Juan Batiz-Benet
56b14d8e9e Merge pull request #676 from jbenet/dial-events
p2p/net: dial log -> events
2015-01-28 02:25:56 -08:00
Juan Batiz-Benet
eb79770683 p2p/net: cleaned up dial events
+ fixed race
2015-01-28 02:15:32 -08:00
Juan Batiz-Benet
03e5a3ebb0 Merge pull request #683 from jbenet/fix-sharness-daemon-fuse
Allow sharness to run daemon without FUSE
2015-01-28 01:46:58 -08:00
Juan Batiz-Benet
cbe07776e3 test/sharness: make sure to output vars in quotes
cc @whyrusleeping: you werent doing so
cc @mappum: you were trying to escape them, but
   were un-escaping them in cases with longer quotes.
2015-01-28 01:04:06 -08:00
Juan Batiz-Benet
ed16840414 test/sharness: "echo -n" bug
In OSX, the `echo -n` was _somehow_ printing "-n" out... not
really sure why, as the bsd `echo` program supports -n. I changed
this to printf -- which is safer.
2015-01-28 00:53:41 -08:00
Juan Batiz-Benet
72f703642a test/sharness: style fix
Let's use `>file`, not `> file`, as it makes it easier to parse.
2015-01-28 00:49:50 -08:00
Juan Batiz-Benet
c283c0a690 test/sharness: allow testing of daemon without FUSE
This commit allows sharness tests to run daemon tests when the FUSE
option is off. Unsure why this was previously included.
2015-01-28 00:36:30 -08:00
Juan Batiz-Benet
80089dade4 Merge pull request #680 from chriscool/fix_daemon_output
Fix daemon initialization output change
2015-01-28 00:35:51 -08:00
Juan Batiz-Benet
b4af146fc8 p2p/net: better dial log.Event 2015-01-28 00:13:42 -08:00
Brian Tiger Chow
bbce860bd0 remove debug log output 2015-01-27 17:15:56 -08:00
Brian Tiger Chow
bbcc259eaf fix(sharness): Initializing daemon... output 2015-01-27 17:04:38 -08:00
Brian Tiger Chow
9ff4dae264 gateway server
initialize if not already initialized

remove gateway fs

add gateway server
2015-01-27 16:24:36 -08:00
Brian Tiger Chow
961e3ced43 feat(coreunix): AddR for recursive Adds 2015-01-27 16:24:36 -08:00
Brian Tiger Chow
a58f3c3bfe remove message 2015-01-27 16:24:36 -08:00
Brian Tiger Chow
1ea9481a63 move config.Init into config package 2015-01-27 16:23:58 -08:00
Christian Couder
cf20552af8 Fix daemon initialization output change
Since commit 76d9d89aff, there is
"Initializing daemon..." printed on the standard output when
the daemon is started.

This means that tests have to be fixed accordingly.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-01-27 23:26:49 +01:00
Brian Tiger Chow
577baaf621 feat(routing.grandcentral): skeleton
fixes breakages:
  - peer.Peer -> peer.ID
  - peer.X -> peer.PeerInfo
  - netmsg -> p2p streams
2015-01-27 02:32:06 -08:00
Juan Batiz-Benet
9dac5bb7d3 p2p/net: dial log -> events
This commit turns all dial logs into log.Events.

Everything's great except for one problem:
The LoggableMap I'm using does not print out things
correctly. I gave it peer.IDs, and Multiaddrs
and both got logged as nothing `{}` (didn't even call
their String() methods!) So, for now, this function
encodes it when called... This is wrong and should be
fixed before being merged in. Otherwise we  will be
constantly encoding peer.IDs and Multiaddrs without
needing to.

@briantigerchow how do you suggest doing this?
I don't know my way around your Loggable.
2015-01-27 01:35:37 -08:00
Jeromy Johnson
92c7f96780 Merge pull request #673 from jbenet/fix/seek
off by one error seeking to end of single block file
2015-01-26 23:49:23 -08:00
Jeromy
2eca66e6d2 off by one error seeking to end of single block file 2015-01-27 07:41:51 +00:00
Juan Batiz-Benet
b16adfeae8 Merge pull request #672 from jbenet/clear-addrs
AddrSplosion -- Partie Deux Avec Vengeance
2015-01-26 23:18:21 -08:00
Juan Batiz-Benet
71f2c4dee0 p2p/peer/peerstore: mu position + comment 2015-01-26 22:47:44 -08:00
Juan Batiz-Benet
d8a63be372 p2p/peer/addr: addrbook RLock fix 2015-01-26 22:01:26 -08:00
Jeromy Johnson
4940c3e0ae Merge pull request #655 from jbenet/feat/dagseek
Implement io.Seeker on unixio.DAGReader
2015-01-26 19:33:41 -08:00
Jeromy
e959626029 comment NodeGetter 2015-01-27 03:29:10 +00:00
Jeromy
6a6ede85d3 TODO -> Background 2015-01-27 03:27:26 +00:00
Juan Batiz-Benet
983822f335 p2p/peer: addresses expire after an hour 2015-01-26 19:23:42 -08:00
Juan Batiz-Benet
3118777a5e p2p/id: SET listen addrs, clearing old ones. 2015-01-26 19:23:42 -08:00
Juan Batiz-Benet
56d900fa10 p2p/peer: addressbook can now clear addrs 2015-01-26 19:23:42 -08:00
Juan Batiz-Benet
d87aacc83a Merge pull request #671 from jbenet/drop-logs
dropped down log.Errors
2015-01-26 19:23:00 -08:00
Juan Batiz-Benet
45e4352c9c dropped down log.Errors 2015-01-26 19:13:44 -08:00
Juan Batiz-Benet
1eb0bfe834 Merge pull request #668 from jbenet/hack
misc user-friendliness fixes
2015-01-26 19:00:09 -08:00