Jeromy
2b06ffaa7d
better refactor of http handler code
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-25 18:46:44 -07:00
Jeromy
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
Juan Batiz-Benet
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
Juan Batiz-Benet
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
Juan Batiz-Benet
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
Juan Benet
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
Jeromy
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
Juan Benet
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
Jeromy
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
Juan Benet
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
Jeromy
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
Juan Benet
9978caf6f3
Merge pull request #1500 from ipfs/feat/global-timeout
...
add a global timeout flag
2015-07-20 21:22:51 -07:00
Jeromy
bb3a75aa08
remove context from context
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 20:53:06 -07:00
Jeromy
f9f3c6a527
make offline commands respect timeout
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 14:34:16 -07:00
Jeromy
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
Juan Benet
13d49d9abb
Merge pull request #1471 from heems/master
...
add transport from netsim and bandwidth to mocknet
2015-07-19 23:36:25 -07:00
Juan Benet
81227ecb40
Merge pull request #1496 from MichaelMure/bash_completion
...
Update the bash completion script
2015-07-19 22:19:12 -07:00
Jeromy Johnson
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
Jeromy
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
Juan Benet
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
Jeromy
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
Juan Benet
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
Michael Muré
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
Michael Muré
557d5f211d
Update the bash completion script
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2015-07-18 14:50:29 +02:00
Jeromy
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
Karthik Bala
0e597b3ae6
add transport logic to mocknet
...
License: MIT
Signed-off-by: Karthik Bala <karthikbala444@gmail.com>
2015-07-15 19:36:15 -07:00
Juan Batiz-Benet
8668f40915
Merge pull request #1481 from Luzifer/alpine
...
Migrated Dockerfile to use alpine linux
2015-07-15 11:44:13 -07:00
Knut Ahlers
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
Juan Batiz-Benet
cdb18d2833
Merge pull request #1473 from ipfs/godep-peerstream
...
update go-peerstream to newest version
2015-07-14 21:29:38 -07:00
Juan Batiz-Benet
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
Juan Batiz-Benet
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
Jeromy
a9c971fdbb
update go-peerstream to newest version
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 16:23:30 -07:00
Juan Batiz-Benet
a95ce17bd1
Merge pull request #1478 from ipfs/fix/slow-stop
...
making the daemon shutdown quicker
2015-07-14 15:55:07 -07:00
Jeromy
191ac62c12
making the daemon shutdown quicker
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 14:04:56 -07:00
Jeromy
5711eb8cd9
better test of failure case
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 13:28:22 -07:00
Juan Batiz-Benet
1795482e35
Merge pull request #1474 from ipfs/fix/bitswap-race
...
fix race introduced in bitswap
2015-07-14 13:24:09 -07:00
Jeromy
4cce6f8adf
add sharness test to check object stat with no leading /ipfs/
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 12:28:38 -07:00
Jeromy
839759ae4f
add tests for path parsing
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 12:16:10 -07:00
Jeromy
ce70743829
fix parsing for paths of format <hash>/path
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 12:01:01 -07:00
Jeromy
fdf4423c8b
fix race introduced in bitswap
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-14 11:11:16 -07:00
Juan Batiz-Benet
498e927ac7
Merge pull request #1472 from ipfs/feat/proto-ping
...
Feat/proto ping
2015-07-13 20:52:26 -07:00
Jeromy
a19ad97ea5
make ping its own protocol
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-13 19:19:25 -07:00
Juan Batiz-Benet
eee61b06fd
Merge pull request #1469 from ipfs/fix/bitswap-writeblock
...
allow bitswap to attempt to write blocks to disk multiple times
2015-07-13 18:14:39 -07:00
Jeromy
9ec3c1aac1
clean up unused dht methods
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-13 15:53:58 -07:00
Jeromy
a25352d80e
publish block before writing to disk
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-13 11:24:49 -07:00
Jeromy
7ef1a470c7
allow bitswap to attempt to write blocks to disk multiple times
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-13 11:01:01 -07:00
Juan Batiz-Benet
7077d71740
Merge pull request #1464 from ipfs/fix/filters-offline
...
error out swarm filter when no daemon is online
2015-07-10 18:12:25 -07:00
Juan Batiz-Benet
d4656657c8
Merge pull request #1466 from ipfs/export-modules
...
moved util/ctx to github.com/jbenet/go-context
2015-07-10 18:11:56 -07:00
Juan Batiz-Benet
30509fc597
Merge pull request #1465 from ipfs/travis/docker
...
use travisCI's docker containers for testing
2015-07-10 17:59:46 -07:00