Commit Graph

6083 Commits

Author SHA1 Message Date
Jeromy Johnson
16245dbd99 Merge pull request #2778 from ipfs/feature/CORS-on-gateway-by-default
Add CORS headers to Read Only Gateway Default config
2016-06-15 09:59:30 -07:00
Jeromy Johnson
323441d757 Merge pull request #2855 from ipfs/feature/test-repeated-ip
Fix DHT tests failing because of repeated addresses
2016-06-14 20:16:11 -07:00
Jakub Sztandera
32cdbbdffa Fix DHT tests failing because of repeated addresses
Due to SO_REUSE_PORT it is possible for a localhost:0
address to repeat. This causes failure in DHT tests
where we spun up a lot of nodes inside test.

As for a birthday paradox it is enough to use 140
ports to get 20% chance for collision which was causing
failure in our case.

The fix is to disable REUSE_PORT routine for the
tests and leave it running for sharness tests where
not that many addresses are used at the same time.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-14 16:39:15 +02:00
Jeromy Johnson
79e9bd842c Merge pull request #2838 from ipfs/feature/datastore-to-gx
Migrate go-datastore to gx
2016-06-12 19:56:40 -07:00
Jeromy Johnson
0ff2dc996c Merge pull request #2841 from ipfs/feat/efficient-dht
a few small changes to make the dht more efficient
2016-06-12 14:05:33 -07:00
Jakub Sztandera
a14bd71749 Move golang-lru to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 10:02:44 +02:00
Jakub Sztandera
35bb502261 Remove go-os-rename
It is included in go-datastore

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:58 +02:00
Jakub Sztandera
58d222fbd5 Remove codahale/hdrhistogram as it is not longer used
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:58 +02:00
Jakub Sztandera
6bd66cc8c3 Move metrics to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:56 +02:00
Jakub Sztandera
7910c6e4b7 Remove snappy from Godeps
It is in go-datastore

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:15 +02:00
Jakub Sztandera
cafd81c8c6 Import go-datastore to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:15 +02:00
Jakub Sztandera
6217e1f141 Remove go-datastore from Godeps
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:23:43 +02:00
Jeromy
260e7a0098 sort peers outside of locks
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 23:07:06 -07:00
Jeromy Johnson
ecbca7e0f4 Merge pull request #2813 from ipfs/feature/ping-api
Improve ping API a bit by returning failure in case of only failure
2016-06-11 18:40:22 -07:00
Jeromy
44c8746114 a few small changes to make the dht more efficient
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 17:08:34 -07:00
Jeromy Johnson
c9ddc7d1d5 Merge pull request #2798 from ipfs/feat/smarter-bitswap
Make bitswap better
2016-06-11 16:52:45 -07:00
Jeromy Johnson
c0e971108d Merge pull request #2840 from ipfs/deps/update-utp-manet
Deps/update utp manet
2016-06-11 16:23:57 -07:00
Jeromy
4c1201badb update iptb and multinode tests
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 15:54:28 -07:00
Jeromy
7c8e641436 pull in libp2p updates with utp fixes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 10:33:44 -07:00
Jeromy Johnson
444a8dc2f6 Merge pull request #2812 from ipfs/feature/refs-local-api
Fix refs local marshalling
2016-06-10 11:35:06 -07:00
Jeromy Johnson
62fb45b125 Merge pull request #2831 from ipfs/feature/test-stanity
Add some sanity tests for the misdial failure
2016-06-10 08:32:50 -07:00
Jeromy Johnson
b731c795d9 Merge pull request #2826 from ipfs/fix/dht-ctx-respect
respect contexts while reading messages in dht
2016-06-09 16:31:21 -07:00
Jakub Sztandera
e4440ce027 Fix typo in test
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-10 00:50:50 +02:00
Jeromy Johnson
6fd7ce3a50 Merge pull request #2829 from ipfs/feature/update-go-log
Update go-log
2016-06-09 15:43:12 -07:00
Jakub Sztandera
a84006a24c Add some sanity tests for the misdial failure
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-10 00:11:00 +02:00
Jeromy
73463cd208 respect contexts while reading messages in dht
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-09 15:10:06 -07:00
Jakub Sztandera
eaccd07505 Update go-log
https://github.com/ipfs/go-log/pull/3

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 23:37:09 +02:00
Jeromy Johnson
7d5ba11edd Merge pull request #2808 from karalabe/multi-component-gopath
Makefile, bin: Support multiple GOPATH components
2016-06-09 14:33:06 -07:00
Jeromy Johnson
9cb55b0fa8 Merge pull request #2825 from ipfs/feature/Godeps-to-gx-part-whatever
Migrations to gx
2016-06-09 14:32:33 -07:00
Jakub Sztandera
fb0aa63587 Move fsnotify to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jakub Sztandera
c7d04e96b3 Move go-sysinfo to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jakub Sztandera
35cdc1336f Move goleveldb to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jakub Sztandera
d5702d7b3a Move atomicfile to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jakub Sztandera
6d4975d82c Move go-humanize to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jeromy
d16591ad21 Make bitswap better
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-08 14:17:08 -07:00
Jakub Sztandera
1c9b6078e3 Improve ping API a bit by returning failure in case of only failure
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-08 19:58:44 +02:00
Jeromy Johnson
0e81124105 Merge pull request #2817 from ipfs/feat/dht-reuse-stream
reuse streams for dht messaging
2016-06-08 10:08:25 -07:00
Jeromy Johnson
bee40b144c Merge pull request #2819 from ipfs/cleanup/dht
clean up some dead code in the dht
2016-06-08 09:13:13 -07:00
Juan Benet
868969fc39 Added readme image
it needs to be added to the repo or something later.
2016-06-07 12:59:59 -07:00
Jeromy
3d38faef92 clean up some dead code in the dht
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-07 01:50:08 -07:00
Jeromy Johnson
0ab5577339 Merge pull request #2801 from ipfs/feature/move-docs-to-docs
Moved docs to docs
2016-06-07 01:40:32 -07:00
Jeromy
dc4c21ef02 use constants for stream reuse heuristics
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-07 01:27:39 -07:00
Jakub Sztandera
8be37ea51b Rremove unneeded print
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-07 10:22:27 +02:00
Jeromy Johnson
7a7a267e36 Merge pull request #2818 from ipfs/deps/libp2p/id-fix
update libp2p to version 3.2.2
2016-06-07 01:08:55 -07:00
Jeromy
afbc6be0a6 update libp2p to version 3.2.2
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-07 00:20:06 -07:00
Jeromy Johnson
e2c7a04400 Merge pull request #2795 from ipfs/fix/mfs-caching
rework add-mfs to not use caching
2016-06-07 00:01:44 -07:00
Jeromy
46d626a6dc cleanup stream reuse
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-06 23:28:39 -07:00
Jeromy
3e9717aa20 reuse streams in the dht networking code
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-06 17:35:56 -07:00
Jeromy Johnson
b1b51e8f65 Merge pull request #2810 from pfista/2680-stats-alias-commands
Adds aliases to stats command
2016-06-06 15:48:32 -07:00
Jakub Sztandera
b2a082fb13 Add tests to prevent future regressions
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-06 12:35:29 +02:00