1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 17:36:38 +08:00

6120 Commits

Author SHA1 Message Date
30ef23a1dc Merge pull request #2883 from ipfs/feature/standardize-readme
Standardized Readme
2016-06-21 15:25:28 -07:00
c98bf9a164 Merge pull request #2884 from ipfs/feat/default-fd-bump
raise file descriptor limit to 1024 by default
2016-06-21 12:32:36 -07:00
deecc5dd7f raise file descriptor limit to 1024 by default
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-21 11:31:14 -07:00
7d18f74879 Merge pull request #2880 from yuvallanger/swarm-filters-save-config
Swarm filters save config (fix #2878)
2016-06-21 10:42:19 -07:00
eb955dff71 Standardized Readme
See https://github.com/ipfs/community/issues/124

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-21 18:31:25 +01:00
d608f32916 Add ipfs config Swarm.AddrFilters test
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 09:03:40 +03:00
20b6499102 Move no arguments check to before opening fsrepo.
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:41:08 +03:00
42468d0ebe Add filtersRemove() and the swarmFiltersRmCmd.Run() parts that call it.
Also added types and marshalers to the swarmFiltersAddCmd and
swarmFiltersRmCmd structs.

License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:26:17 +03:00
bd9b312039 Add filtersAdd() and the code that uses it to swarmFiltersAddCmd.Run()
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:26:14 +03:00
c6443fd933 Merge pull request #2874 from ipfs/extract-gateway
gateway: clean up its surface, and remove BlockList
2016-06-20 12:34:29 -07:00
30f2c1f367 Merge pull request #2871 from rikonor/master
Added variable latency delay, normal and uniform based
2016-06-20 09:57:14 -07:00
720fa80dd7 Merge pull request #2863 from ipfs/fix/dht-timeouts
implement some simple dht request read timeouts
2016-06-20 09:50:39 -07:00
cd7010f7bf Added variable latency delay, normal and uniform based
- Allow providing new delays with your own rng / use shared rng

License: MIT
Signed-off-by: Or Rikon <rikonor@gmail.com>
2016-06-19 08:59:09 -04:00
a6fb581371 Merge pull request #2867 from ipfs/feature/api-offline
Add way to check if node is online or offline
2016-06-18 23:00:57 -07:00
1afebc21f3 gateway: clean up its surface, and remove BlockList
This patch is in preparation for the gateway's extraction.

It's interesting to trace technical debt back to its
origin, understanding the circumstances in which it
was introduced and built up, and then cutting it back
at exactly the right places.

- Clean up the gateway's surface
  The option builder GatewayOption() now takes only
  arguments which are relevant for HTTP handler muxing,
  i.e. the paths where the gateway should be mounted.
  All other configuration happens through the
  GatewayConfig object.

- Remove BlockList
  I know why this was introduced in the first place,
  but it never ended up fulfilling that purpose.
  Somehow it was only ever used by the API server,
  not the gateway, which really doesn't make sense.
  It was also never wired up with CLI nor fs-repo.
  Eventually @krl started punching holes into it
  to make the Web UI accessible.

- Remove --unrestricted-api
  This was holes being punched into BlockList too,
  for accessing /ipfs and /ipn on the API server.
  With BlockList removed and /ipfs and /ipns freely
  accessible, putting this option out of action
  is safe. With the next major release,
  the option can be removed for good.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-19 00:52:35 +02:00
c10ed855a5 Add test for online field in diag sys
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-18 19:15:04 +02:00
e67a21ed6a Add net.online to diag sys command
Currently there was no sure way to check if node is in online
or offline mode.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-18 12:39:13 +02:00
62c986d5c2 demote errors to warnings
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-17 14:34:48 -07:00
2a3bba3a2b Merge pull request #2862 from ipfs/revert-multi-gopath
Revert "Makefile, bin: Support multiple GOPATH components"
2016-06-17 11:11:39 -07:00
f81f6ca6a6 implement some simple dht request read timeouts
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-17 11:01:41 -07:00
0f3ae0736a Merge pull request #2853 from ipfs/feature/decapitalize-Debug
Decapitalized log.Debug messages
2016-06-17 10:26:20 -07:00
ad461c611e Revert "Makefile, bin: Support multiple GOPATH components"
This reverts commit ff75bc0318579fa743a35d316c61d2f8c4ab92ce,
which broke building on windows. See ipfs/go-ipfs#2833.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-17 15:32:40 +02:00
868a1e3679 Merge pull request #2857 from ipfs/feature/test-race-blockstore
Remove failing blockstore with context test
2016-06-16 10:44:45 -07:00
a4801ed024 Merge pull request #2858 from ipfs/deps/libp2p/3.3.4
update go-libp2p to 3.3.4
2016-06-15 13:33:40 -07:00
de56a47bc0 update go-libp2p to 3.3.4
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-15 13:04:49 -07:00
87d05260af Merge pull request #2856 from ipfs/fix/send-msg-race
pass reference to reader instead of using the one on the object
2016-06-15 12:47:01 -07:00
5a08e9e08a Remove failing blockstore test with context
Why is it failing:
process is started, cancel() is called,
between we satart listening to the channels
in select statemnet there is race of three things
that can happent:
 1. Task can complete
 2. Task can start closing <- expected
 3. Task already closed

This race causes failures of the test.

It is basing heavily on race of conditions where
the task not closing, nor the task is completed
before channels are being listened.

It is quite impossible to resolve without
adding bunch of timings in there, which we
want to avoid, as there is no atomic
"send message on channel and select" in Golang

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-15 21:06:34 +02:00
e5e2f2c19c Merge pull request #2822 from ipfs/feature/stdin-stable
Change logic of stdin input to be last and only if required
2016-06-15 11:32:42 -07:00
9dbce4fac9 Update contribute.md 2016-06-15 11:18:42 -07:00
63c8a9eb16 pass reference to reader instead of using the one on the object
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-15 11:13:35 -07:00
9a88107b16 Merge pull request #2854 from ipfs/feature/go-vet-fixes
Remove errors pointed out by govet
2016-06-15 10:16:05 -07:00
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
b6a3435bb5 Decapitalized log.Debug messages
According to golang standards, these should not be capitalized nor having a trailing period, AFAIK.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-15 08:56:34 +01:00
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
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
a2cd3ebca0 Remove errors pointed out by govet
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-14 13:40:16 +02:00
628e458e7d Add regression sharness test for ipfs init
This tests expects ipfs init with no arguments to work
even with occuipied stdin.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-13 13:09:52 +02:00
6822c0c670 Revert "Revert "Implements repository initialization with default config""
This reverts commit 77ef3913d9f5682c5a0dedbba5488e794e9da1b5.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-13 13:09:52 +02:00
4190076c66 Add the time-out script
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-13 13:09:52 +02:00
da4e54c3db Change stdin handling to be only used if needed
or if user asks for it

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-13 13:09:52 +02:00
79e9bd842c Merge pull request #2838 from ipfs/feature/datastore-to-gx
Migrate go-datastore to gx
2016-06-12 19:56:40 -07:00
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
a14bd71749 Move golang-lru to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 10:02:44 +02:00
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
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
6bd66cc8c3 Move metrics to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:56 +02:00
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
cafd81c8c6 Import go-datastore to gx
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:15 +02:00
6217e1f141 Remove go-datastore from Godeps
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:23:43 +02:00
260e7a0098 sort peers outside of locks
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 23:07:06 -07:00