1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 10:49:24 +08:00

4781 Commits

Author SHA1 Message Date
870d85080a Merge pull request #1516 from rht/progressbar
Clear progress bar on `ipfs cat` exit
2015-07-27 18:39:37 -07:00
138198e786 print output on test failure for t0081
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-27 18:34:37 -07:00
aaaf884c9a Merge pull request #1519 from ipfs/get-fix
Implement http trailers for error handling
2015-07-27 17:56:18 -07:00
8176766d5a naming and cleanup
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-27 17:25:38 -07:00
0c4b10afb2 comment need for custom client
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-27 15:19:43 -07:00
23d41e0823 address comments from CR and fix random failures
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-27 09:30:52 -07:00
1ce310be8b some commenting
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-26 11:28:53 -07:00
fd75b64630 refactor http client code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-25 19:56:45 -07:00
2b06ffaa7d better refactor of http handler code
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-25 18:46:44 -07:00
a7e50f1fbc implement http trailers for errors after headers are sent
refactor http handler and copyChunks to get this all to work correctly
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-25 11:07:31 -07:00
814f437fb4 cmds/http/handler: set stream error trailer
stream output might break. in these cases we need to notify the
client. this is after a 200 response has been sent. We do this
by setting a special trailer (header after the body):

  X-Stream-Error: <error cause>

This is similar to what's done by systems like gRPC. This still
needs to be read + handled on the other side.

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-24 14:49:34 -07:00
e3c35d8b76 cmds/get: fix context timeout problem
Get had a random timeout of 60s. This commit fixes that, wiring
up our contexts correctly.

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-24 14:43:17 -07:00
886d47561a http/client: log errors when stream copy fails
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-24 14:41:57 -07:00
rht
818d3af827 Clear progress bar on ipfs cat exit
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-24 23:04:57 +07:00
633b66d8ec Merge pull request #1511 from ipfs/fix/windows
vendor lib so windows builds work again
2015-07-23 17:40:40 -07:00
f0badb6ced vendor lib so windows builds work again
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-23 15:12:23 -07:00
ebfdb3a4d8 Merge pull request #1501 from ipfs/fix/notif-test
fix race condition in notifications test
2015-07-23 15:10:39 -07:00
47cd70fa7d fix same test in swarm
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-22 16:15:50 -07:00
b60f494c1e fix race condition in notifications test
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-22 14:38:13 -07:00
8c0ca5e376 Merge pull request #1507 from ipfs/fix/http-client-close
attempt at properly closing http response bodies
2015-07-22 13:47:52 -07:00
8286abaf8c attempt at properly closing http response bodies
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-22 13:31:33 -07:00
bd809e6643 Merge pull request #1505 from ipfs/object-stat-hash
include hash of resolved object in object stat output
2015-07-21 13:15:58 -07:00
1c74bc57d7 include hash of resolved object in object stat output
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-21 10:49:45 -07:00
d37ecbbb31 Merge pull request #1502 from ipfs/hotfix/nil-ctx
if no context set in request, use context.TODO()
2015-07-20 21:51:48 -07:00
5873aa2aaa if no context set in request, use context.TODO()
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 21:46:51 -07:00
9978caf6f3 Merge pull request #1500 from ipfs/feat/global-timeout
add a global timeout flag
2015-07-20 21:22:51 -07:00
bb3a75aa08 remove context from context
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 20:53:06 -07:00
f9f3c6a527 make offline commands respect timeout
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 14:34:16 -07:00
6083007987 add a global timeout flag for to be setting timeouts
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 12:53:37 -07:00
13d49d9abb Merge pull request #1471 from heems/master
add transport from netsim and bandwidth to mocknet
2015-07-19 23:36:25 -07:00
81227ecb40 Merge pull request #1496 from MichaelMure/bash_completion
Update the bash completion script
2015-07-19 22:19:12 -07:00
e2dd0bb667 Merge pull request #1494 from ipfs/fix/dht-test-connect
mark other nodes in routing table on test-connect
2015-07-19 16:42:10 -07:00
6564fae65c comment for future @jbenet and @whyrusleeping's to understand reasoning
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-19 16:32:50 -07:00
f5b8952503 Merge pull request #1499 from ipfs/fix/ci-test-skip
make timing tests actually not run under CI
2015-07-19 16:26:17 -07:00
a4efe42567 make timing tests actually not run under CI
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-19 16:11:06 -07:00
5f2949780f Merge pull request #1497 from MichaelMure/mount-options
Add the missing long argument for ipfs mount
2015-07-19 16:07:49 -07:00
78e9794be0 Add the missing long argument for ipfs mount
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2015-07-18 15:00:26 +02:00
557d5f211d Update the bash completion script
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2015-07-18 14:50:29 +02:00
4780c65171 mark other nodes in routing table on test-connect
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-17 17:49:51 -07:00
0e597b3ae6 add transport logic to mocknet
License: MIT
Signed-off-by: Karthik Bala <karthikbala444@gmail.com>
2015-07-15 19:36:15 -07:00
8668f40915 Merge pull request #1481 from Luzifer/alpine
Migrated Dockerfile to use alpine linux
2015-07-15 11:44:13 -07:00
a245a27c17 Migrated Dockerfile to use alpine linux
License: MIT Signed-off-by: Knut Ahlers <knut@ahlers.me>
2015-07-15 13:07:34 +02:00
cdb18d2833 Merge pull request #1473 from ipfs/godep-peerstream
update go-peerstream to newest version
2015-07-14 21:29:38 -07:00
7ba49f108c Merge pull request #1480 from rht/godep
Bump goprocess
2015-07-14 20:16:31 -07:00
rht
3089ebaba7 Bump goprocess
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-07-15 09:40:23 +07:00
88ec46ee15 Merge pull request #1475 from ipfs/fix/path-parse
fix parsing for paths of format <hash>/path
2015-07-14 16:28:55 -07:00
a9c971fdbb update go-peerstream to newest version
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 16:23:30 -07:00
a95ce17bd1 Merge pull request #1478 from ipfs/fix/slow-stop
making the daemon shutdown quicker
2015-07-14 15:55:07 -07:00
191ac62c12 making the daemon shutdown quicker
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 14:04:56 -07:00
5711eb8cd9 better test of failure case
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 13:28:22 -07:00