Commit Graph

1430 Commits

Author SHA1 Message Date
Chris Boddy
5f246e3211 [http_proxy_over_p2p] httputil.ReverseProxy
Reimplement http-request proxying ala httputil.ReverseProxy.

NB: this is proxies the request synchronously (sends all request-body
before reading any response).

License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
Dr Ian Preston
22f3b11621 change handler mount point to /proxy/http/
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:26 -08:00
Chris Boddy
1945e44f7f [http_proxy_over_p2p] Add sharness tests for http-proxy-over-p2p
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
Steven Allen
cef645936d gx: update go-ipfs-config
* AutoRelay options for #5785.
* Badger truncate-by-default option for #5275, #5625.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-26 17:42:13 -08:00
Łukasz Magiera
7391cfd421 fix(commands): reduce complexity w/ typed encoder
uses single flag to support state needed by PostRun
supports encoding=text

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 14:53:08 -08:00
hannahhoward
20b928094c fix(commands): Add sharness tests for streaming
Also fixes issues discovered with sharness tests

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-16 14:52:29 -08:00
hannahhoward
0963c9cdcb Update go-ipfs-delay and assoc deps
License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-15 18:53:45 -08:00
Steven Allen
5716926c76
Merge pull request #5573 from kjzz/fix/help
fix `ipfs help` bug #5557
2018-11-05 16:18:58 -08:00
Steven Allen
7e26ef5881
Merge pull request #5729 from dtkav/feat/cmd/webui-link
output link to WebUI on daemon startup
2018-11-05 07:51:47 -08:00
Łukasz Magiera
cb16462885 update t0290-cid with new dash codec
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-11-03 22:59:56 +01:00
Daniel Grossmann-Kavanagh
c7e10f2078
add Web UI link to daemon startup
License: MIT
Signed-off-by: Daniel Grossmann-Kavanagh <me@danielgk.com>
2018-11-02 23:00:52 -07:00
Steven Allen
0d80fc54c3 gx: update go-log and sha256
fixes #5709

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 21:17:20 -07:00
Travis Person
b37338fd68 fix for-each
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 20:13:31 -07:00
Travis Person
fcf1043683 Update iptb and iptb-plugins
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 19:46:06 -07:00
Travis Person
be3fc3e791 Update for plugins split
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 19:34:05 -07:00
Travis Person
e68c10abf4 Add iptb dep
License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 19:33:07 -07:00
Travis Person
569eeb8f82 Update IPTB test - WIP
Related to #5521

License: MIT
Signed-off-by: Travis Person <travis@protocol.ai>
2018-11-01 19:33:05 -07:00
Steven Allen
37f33812ae error on resolving non-terminal paths
This isn't the *correct* fix but it (mostly) restores the previous behavior.

Note 1: It *also* fixes resolution of `/ipld` paths by avoiding `path.FromCid`.
Note 2: This does not preserve the error. That was a DagCBOR specific error that
has nothing to do with the issue.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 12:34:32 -07:00
Steven Allen
8543e27e0d
Merge pull request #5699 from ipfs/fix/pin-ls-output
Fix pin ls output when hash is specified
2018-10-30 07:52:19 -07:00
Łukasz Magiera
08d6e7844a fix pin ls output when hash is specified
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-30 15:26:18 +01:00
Steven Allen
f8375ec79c
Merge pull request #5680 from ipfs/fix/cleanup-ping
cleanup the ping command
2018-10-30 06:42:52 -07:00
Steven Allen
62240f347a sharness: verify that we return an error when we can't lookup a peer in ping
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 06:31:03 -07:00
Kejie Zhang
53fe9c9bcc add ipfs help sub-command test
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-30 16:53:47 +08:00
Kejie Zhang
08c75aa795 fix ipfs help bug
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-30 15:36:44 +08:00
Łukasz Magiera
23ddc26025 ci: Coverage and Junit xmls in one run
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-29 18:44:49 +01:00
Steven Allen
2b0bc7e084 configurable pubsub singing
I'd like to sneak this into the release so we can turn on strict verification
ASAP.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-26 04:00:44 -07:00
Steven Allen
e35d4ea58b gx: update yamux
(fixes a panic due to a race)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 15:01:31 -07:00
Steven Allen
636bbc7e2b gx update go-libp2p
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 13:39:48 -07:00
Steven Allen
c97c3459be gx update
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-24 09:59:43 -07:00
chenminjian
64cdabc88f feat: stop apply command exposing private key over HTTP API
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-10-24 05:46:00 -07:00
chenminjian
2e3cbe3e27 feat: add dry-run flag for config profile apply command
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-10-24 05:46:00 -07:00
Łukasz Magiera
34b1313d82 coreapi unixfs: remove Cat, use sessions
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-22 23:37:45 +02:00
Steven Allen
dd4d8bb25e
Merge pull request #5529 from overbool/fix/issue-#5523
fix(p2p): issue #5523
2018-10-18 19:33:44 +01:00
Steven Allen
9cdbb1eaad
Merge pull request #5586 from ipfs/fix/sharness/stat-race
fix: sharness race in directory_size if file is removed
2018-10-18 15:59:18 +01:00
Steven Allen
7de79280bb
Merge pull request #5404 from ipfs/feat/namestream
ipfs name resolve --stream
2018-10-18 15:55:16 +01:00
Overbool
ec8e45120e fix(files): add test
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-17 01:06:32 +08:00
Łukasz Magiera
462c8026be namesys: allow non /ipfs paths
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-16 16:37:15 +02:00
Łukasz Magiera
94bbeffaa9 Merge remote-tracking branch 'origin/master' into feat/namestream
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-15 12:05:03 +02:00
Jakub Sztandera
a4fab7f885 fix(sharness): gc repo size tests failing
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-10-15 09:26:28 +01:00
Steven Allen
4f53736430 gx: update yamux and refmt
* yamux: fix memory leak.
* refmt: obey the "empty" tag.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-12 16:15:40 +01:00
Steven Allen
1efe39274b
Merge pull request #5580 from ipfs/fix/5577
test the correct return value
2018-10-12 15:18:09 +01:00
Steven Allen
8117a2bcee gx: update go-buffer-pool
Turns out that `pool.Put(buf)` had to *allocate* because we needed to turn
`[]byte` into `interface{}`. Apparently, we've never done this correctly we just
never noticed because we never really used buffer pools extensively.

However, since migrating yamux to a buffer-pool backed buffer, this started
showing up in allocation profiles.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-10 14:11:31 +01:00
Łukasz Magiera
0bef4603e8 Merge branch 'master' into feat/namestream
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-10 12:10:12 +02:00
Steven Allen
67ea8dde0e test the correct return value
`res=$?` erases `$?` (sets it to 0)

fixes #5577

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-10 10:08:54 +01:00
Kejie Zhang
f90ee061d3 update add --chunker test
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-08 14:15:56 +08:00
Steven Allen
098933ade4 gx: update stuff
* go-datastore and friends: GetSize
* badger: new release, fewer allocations
* go-mplex: send fewer packets
* go-bitswap: pack multiple blocks in a single message, fewer allocations
* go-buffer-pool: replace the buffer pool from go-msgio
* yamux: fixed data race and uses go-buffer-pool for stream read-buffers to
  reduce memory and allocations.
* go-libp2p-secio: get rid of a hot-spot allocation
* go-libp2p-peerstore: reduced allocations (at the cost of some memory)

More?

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-05 14:48:44 -07:00
Overbool
717c0c83a1 fix(p2p): add test for issue #5523
;wq
Signed-off-by: Overbool <overbool.xu@gmail.com>

License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-10-05 13:30:31 +08:00
Kejie Zhang
dee54b36d9 add test about issue #4978
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-05 11:21:54 +08:00
Kejie Zhang
51fa159e4a add dns support in p2p forward connect
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-04 18:14:55 -07:00
Steven Allen
05b3b81743
Merge pull request #5555 from overbool/feat/add-force-flag-for-files-rm
feat(command): add force flag for files rm
2018-10-04 17:52:01 -07:00