1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 08:47:42 +08:00

2736 Commits

Author SHA1 Message Date
b599e28b88 core/mock: use mock routing
this fixes a failing ipns test which didnt have
a "working" routing system
2015-01-05 00:16:53 -08:00
a8127a28e1 fix: force clean test results directory
Without `-f`, `make clean` fails on machines that don't have the dir.

cc @jbenet
2015-01-05 00:16:53 -08:00
05d8c80c39 fix(bitswap/network): return when context is done
@jbenet @whyrusleeping

This bug (missing return) could tie up the client worker and cause
operations to come to a halt.
2015-01-05 00:16:53 -08:00
64cb32dadd disable utp
utp is BROKEN!! it causes tests to fail.
2015-01-05 00:16:53 -08:00
9c6228d18f bitswap and dht: lots of debugging logs 2015-01-05 00:16:53 -08:00
bb8886f3af merkledag: LONG timeout on Get
we shouldn't use an arbitrary timeout here. since Get
doesnt take in a context yet, we give a large upper bound.
think of an http request. we want it to go on as long as
the client requests it.
2015-01-05 00:16:53 -08:00
71ada4696f bitswap net: always close 2015-01-05 00:16:53 -08:00
d357b0ac00 bitswap debug logging 2015-01-05 00:16:53 -08:00
c100390a49 bitswap engine: signal in own func 2015-01-05 00:16:52 -08:00
623625845d prefix logger
this commit adds a logger with prefixes
2015-01-05 00:16:52 -08:00
5639042df5 bitswap: send wantlist code reuse + debug logs 2015-01-05 00:16:52 -08:00
7629ad7ec7 bitswap: add self peer.ID 2015-01-05 00:16:52 -08:00
17ce192af5 dht: some provider debug logging 2015-01-05 00:16:52 -08:00
3b6350331f dht: debug dont cast Key as peer.ID 2015-01-05 00:16:52 -08:00
e3223a073e dockertest: logging niceness 2015-01-05 00:16:52 -08:00
0b0ca40863 Merge pull request #480 from jbenet/fix/sharness-init
fix sharness test for ipfs init output
2015-01-05 00:14:46 -08:00
c47b808d77 sharness/init: fixed ipfs init output 2015-01-05 00:09:49 -08:00
b241c8048f fix sharness test for ipfs init output 2015-01-05 00:02:56 -08:00
02eb6ac2c1 Merge pull request #493 from jbenet/sharness-verbose
sharness: verbose output
2015-01-04 23:02:15 -08:00
e407c2ef83 sharness: override test_cmp for verbose 2015-01-04 22:53:21 -08:00
acf4759758 travis: enable verbose sharness output 2015-01-04 22:37:30 -08:00
481c19ac23 sharness: note in makefile describing TEST_VERBOSE 2015-01-04 22:30:59 -08:00
3510a8278c makefile fix: order of env vars 2015-01-04 22:29:11 -08:00
e5f24dc26b sharness: expanded on readme 2015-01-04 22:22:45 -08:00
be4191d800 sharness: nice verbose ouput
Make sharness tests' output helpful when verbose.
This means cating certain files, or running diagnostic
commands. I used a construction like:

    test_expect_success ".go-ipfs/ has been created" '
      test -d ".go-ipfs" &&
      test -f ".go-ipfs/config" &&
      test -d ".go-ipfs/datastore" ||
      fsh ls -al .go-ipfs
    '

The `|| ...` is a diagnostic run when the preceding command
fails. `fsh` is a trivial script that echoes the args, runs
the cmd, and then also fails, making sure the test case fails.
(wouldnt want the diagnostic accidentally returning true and
making it _seem_ like the test case succeeded).
2015-01-04 22:22:33 -08:00
d06e7e342d sharness: set verbosity from env 2015-01-04 20:39:23 -08:00
6ccbba2bdc Merge pull request #487 from jbenet/mount-fix
mount fixes
2015-01-04 01:28:27 -08:00
cf62f63b58 better daemon + main exit semantics 2015-01-04 00:47:27 -08:00
e21b1f662b fuse mount lifecycle fixes
This commit cleans up how mounting was being done.
It now successfully signals when it is properly mounted
and listen to close signals correctly.
2015-01-04 00:47:27 -08:00
1fa14335b9 core: rearranged initialization a bit 2015-01-04 00:47:27 -08:00
56867c8b70 updated bazil.org/fuse 2015-01-04 00:47:26 -08:00
12549ca8f9 Merge pull request #478 from jbenet/relay
Stream relaying
2015-01-04 00:46:39 -08:00
85e3024731 vendor identify pb
not sure how it wasnt an error
2015-01-02 08:46:47 -08:00
feb5e495f5 use ZeroLocalTCPAddress for network tests
This commit makes all network tests use ZeroLocalTCPAddress
as the initial peer address, and then relies on
net.ListenAddresses()

This should get rid of the tcp addr clash problems.
2015-01-02 08:46:46 -08:00
8fb5cf9578 swap net2 -> net 2015-01-02 08:46:46 -08:00
128e820ccb mocknet: use host 2015-01-02 08:46:46 -08:00
dadb8b775b host interface + services
The separation of work in the p2p pkg is as follows:

- net implements the Swarm and connectivity
- protocol has muxer and header protocols
- host implements protocol muxing + services
- identify took over handshake completely! yay.
- p2p package works as a whole
2015-01-02 08:46:46 -08:00
d322824874 net2: separate protocols/services out.
using a placeholder net2 package so tests continue to pass.
Will be swapped atomically into main code.
2015-01-02 08:46:46 -08:00
ba09447251 mux: close stream on error
remove comment about spdystream. this is now
superceded by go-peerstream interface.
2015-01-02 08:46:46 -08:00
53d190da2c peerstore: AddPeerInfo 2015-01-02 08:46:46 -08:00
0ef035ef08 combined protocol and mux 2015-01-02 08:46:45 -08:00
e0b9a368b8 protocol and muxer pkg 2015-01-02 08:46:45 -08:00
4309d15edb updated msgio (varints) 2015-01-02 08:46:45 -08:00
e2698a8733 net -> p2p/net
The net package is the next to move. It will be massaged
a bit still to fix the Network / "NetworkBackend" conflict.
2015-01-02 08:46:45 -08:00
cc0d7c9b57 crypto -> p2p/crypto
The crypto package moves into p2p. Nothing in it so far is ipfs
specific; everything is p2p-general.
2015-01-02 08:46:45 -08:00
89f5cd4c94 introducing p2p pkg
I think it's time to move a lot of the peer-to-peer networking
but-not-ipfs-specific things into its own package: p2p.
This could in the future be split off into its own library.
The first thing to go is the peer.
2015-01-02 08:46:45 -08:00
35c22781ff relay: test across 4 + stress 2015-01-02 08:46:44 -08:00
2984fb72d6 add relaying to mocknet
These services should all be added separately, in a function
that is Network impl independent. The interfaces need to be
massaged a bit (split inet.Network in two), so will do when
needed. For now this is fine.
2015-01-02 08:46:44 -08:00
49cb135ca2 ipfsnet -> swarmnet
swarmnet is a better name for the package, because
it's just a Network implemented with a Swarm.
(ipfsnet will be something slightly different).
2015-01-02 08:46:44 -08:00
735c3de7fa relay service -- streams across peers
this is the leadup into NAT traversal.
note: doesn't work yet. hangs the test.
2015-01-02 08:46:44 -08:00