Commit Graph

4811 Commits

Author SHA1 Message Date
Christian Couder
8f102d2cbd t0051: swap test_cmp arguments
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 23:26:20 +02:00
Juan Benet
7e69146933 Merge pull request #1775 from ipfs/fix/ipns-old-record
fix publish fail on prexisting bad record
2015-10-02 18:08:56 -04:00
Jeromy
b34d41e01e fix publish fail on prexisting bad record
dont error out if prexisting record is bad, just grab its sequence number
and continue on with the publish.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-02 14:59:31 -07:00
Juan Benet
5b2d2ebdd6 Merge pull request #1739 from ipfs/ipns/patches
Ipns/patches
2015-10-01 15:55:36 -04:00
Jeromy
3b9ad30005 Addressing comments from CR
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 22:50:50 -07:00
Jeromy
e5512b4115 make publish more configurable and add test for repub
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:44 -07:00
Jeromy
e202c6592f vendor in iptb and kingpin
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:02 -07:00
Jeromy
815a031f59 Implement ipns republisher
This commit adds a very basic process that will periodically go through
a list of given ids and republish the values for their ipns entries.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
Jeromy
235a9ec5fc Fix dht queries
Queries previously would sometimes only query three (alpha value) peers
before halting the operation. This PR changes the number of peers
grabbed from the routing table to start a query to K.

Dht nodes would also not respond with enough peers, as per the kademlia
paper, this has been changed to from 4 to 'K'.

The query mechanism itself also was flawed in that it would pull all the
peers it had yet to query out of the queue and 'start' the query for
them. The concurrency rate limiting was done inside the 'queryPeer'
method after the goroutine was spawned. This did not allow for peers
receiver from query replies to be properly queried in order of distance.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
Jeromy
cfcc3d6a1b ipns record selection via sequence numbers
This commit adds a sequence number to the IpnsEntry protobuf
that is used to determine which among a set of entries for the same key
is the 'most correct'.

GetValues has been added to the routing interface to retrieve a set of
records from the dht, for the caller to select from.

GetValue (singular) will call GetValues, select the 'best' record, and
then update that record to peers we received outdated records from.
This will help keep the dht consistent.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:41 -07:00
Juan Benet
81c64768c5 Merge pull request #1760 from MichaelMure/missing_new_line
Add a new line in the output of ipfs log level
2015-09-27 21:57:16 -04:00
Michael Muré
f9af496ae8 Add a new line in the output of ipfs log level
License: MIT
Signed-off-by: Michael Muré <mure.michael@gmail.com>
2015-09-27 19:08:23 +02:00
Juan Benet
0020918465 Merge pull request #1759 from rht/cleanup-coreunix
Cleanup coreunix cat
2015-09-27 10:49:22 -04:00
rht
a7f43de5f2 Cleanup coreunix cat
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-27 17:13:34 +07:00
Juan Benet
ce20cf9954 Merge pull request #1755 from sroerick/patch-1
added docker file permission instructions.
2015-09-27 04:11:02 -04:00
Roerick Sweeney
4a0725fe2e added docker file permission instructions again
I screwed up my initial commit, so here goes again. That's what i get for using the github gui...

I added the instructions to make the ipfs_data and ipfs_staging globally readable, which prevents permission errors.

It may be better to limit permissions in some way, to prevent potential security risks.

License: MIT
Signed-off-by: sroerick sweeney@roerick.me
2015-09-27 02:06:53 -06:00
Juan Benet
a26ad22434 Merge pull request #1757 from ipfs/shell-quote
ipfs-test-lib: add shellquote()
2015-09-27 03:29:37 -04:00
Christian Couder
1bd182055b ipfs-test-lib: add shellquote()
This function can be usefull in many places.

See for example:

https://github.com/ipfs/go-ipfs/pull/1742

Git has `git rev-parse --sq-quote` that does the same thing.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-27 09:11:25 +02:00
Juan Benet
08e06764c8 Merge pull request #1742 from ipfs/test/gz
Sharness: add test for compression level
2015-09-26 18:36:36 -04:00
sroerick
279328c26b added docker file permission instructions. 2015-09-25 19:59:32 -06:00
Juan Benet
7244c0443a Merge pull request #1743 from ipfs/dht-key-escape
allow for dht keys to be escaped
2015-09-25 19:54:05 -04:00
Juan Benet
4ac2c46c6a Merge pull request #1752 from ipfs/feat/stat-count
allow bitswap stat to return total number of bytes wasted
2015-09-25 18:51:31 -04:00
Juan Benet
d3b873ccca Merge pull request #1753 from ipfs/fix/api-file
write correct address to api file
2015-09-25 18:43:41 -04:00
Jeromy
c3e72377b2 write correct address to api file
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-25 15:34:54 -07:00
Jeromy
0c7421643d allow bitswap stat to output wasted bytes
bitswap stat can now track bytes that are wasted by receiving duplicate
blocks.

ps, gitcop smells

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-25 14:40:46 -07:00
Juan Benet
5b9811371c Merge pull request #1749 from mjanczyk/master
Fix #1661 IPFS crashes on windows after first run
2015-09-25 16:07:37 -04:00
Juan Benet
7ba85c6ee0 Merge pull request #1732 from WeMeetAgain/fix-http-api-content-type
remove hard-coded json content-type for streaming http output
2015-09-25 16:07:05 -04:00
Marcin Janczyk
20908b3072 Detect connection refused errors during API test on Windows
The first run does not try to connect to API, as an address is not
yet saved in configuration. The second run did not recognize
corrently a refused connection.

Fixes #1661.

License: MIT
Signed-off-by: Marcin Janczyk <marcinjanczyk@gmail.com>
2015-09-25 08:37:10 +02:00
Cayman Nava
9634b25b63 remove hard-coded json content-type for streaming http output
There was a stale assumption that streaming output from a channel would
always be json.
This commit removes that code, allowing Content-Type to appropriately be
set like other, non-channel-streaming commands.

License: MIT
Signed-off-by: Cayman Nava <caymannava@gmail.com>
2015-09-24 19:13:29 -07:00
Juan Benet
ce11ed5e23 Merge pull request #1745 from ipfs/doc/patch-data
document the set-data and append-data commands in patch
2015-09-24 17:39:51 -04:00
Jeromy
2492f0cb38 document the set-data and append-data commands in patch
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-24 12:43:37 -07:00
Jeromy
d01ee1111f better parsing logic for dht keys containing prefixes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-24 09:27:00 -07:00
rht
43dbd1cdb9 Sharness: add test for compression level
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-23 19:08:26 +07:00
Juan Benet
9c6ec296e3 Merge pull request #1704 from klauspost/use-compression-level
Fix gzip compression level not being set.
2015-09-23 04:19:54 -07:00
Richard Littauer
e812abbc66 Merge pull request #1734 from ipfs/feature/contribute-md
Added a Contribute file
2015-09-21 14:10:03 -04:00
Richard Littauer
3501aff032 Added a Contribute file
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2015-09-21 14:07:58 -04:00
Juan Benet
c6166e5aa0 Merge pull request #1622 from ipfs/feat/rm-worker
dont need blockservice workers anymore
2015-09-16 01:52:58 -04:00
Jeromy
63f72a5155 remove context from HasBlock, use bitswap process instead
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 17:53:42 -07:00
Jeromy
47b85c7bc3 dont need blockservice workers anymore
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 17:53:26 -07:00
Juan Benet
889603f11f Merge pull request #1709 from ipfs/godep-update
Godep update
2015-09-15 20:48:02 -04:00
Jeromy
35a5ca0ef5 update go-datastore to latest
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 17:15:29 -07:00
Jeromy
973c5fa0a4 update go-peerstream to newest version
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 16:09:23 -07:00
Juan Benet
c77a96fef8 Merge pull request #1703 from Luzifer/signals
Use exec to start IPFS daemon
2015-09-15 18:20:53 -04:00
Juan Benet
46e888bdfc Merge pull request #1701 from ipfs/feat/extract-logging
extract logging
2015-09-15 13:05:31 -04:00
klauspost
4b81d9e85e Fix gzip compression level not being set.
If "compression-level" is set, the compression is set to gzip.Nocompression.

License: MIT
Signed-off-by: Klaus Post <klauspost@gmail.com>
2015-09-15 12:12:11 +02:00
Knut Ahlers
1cdafc7146 Use exec to start IPFS daemon
This incorporates feedback from @RX14 in #1685 and might fix #1537 as the ipfs daemon would get the stop signal from the docker daemon... Maybe that way it stops in a cleaner manner...

License: MIT
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2015-09-15 11:30:20 +02:00
Juan Benet
df861afccc Merge pull request #1672 from ipfs/feat/unwant
implement unwant command to remove blocks from wantlist
2015-09-15 00:57:57 -04:00
Jeromy
e5a2896c0e extract logging
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-14 17:35:50 -07:00
Jeromy
6c02259a5f add a basic test for unwant
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-14 15:26:09 -07:00
Juan Benet
ae1e45234d Merge pull request #1699 from Luzifer/notify_dockerhub
Fix: Use the right repo to encrypt secrets.
2015-09-14 13:54:59 -04:00