Brian Tiger Chow
5cade6a59d
Merge pull request #550 from jbenet/fix-swarm-close-bugs
...
p2p/net/swarm: fixed bugs in swarm err closes
2015-01-13 02:56:41 -08:00
Juan Batiz-Benet
e3eaa154af
p2p/net/swarm: fixed bugs in swarm err closes
2015-01-13 02:37:26 -08:00
Juan Batiz-Benet
9b2ccf1e17
Merge pull request #549 from jbenet/fix-simultaneous-dials
...
p2p/net/swarm: dial once at a time
2015-01-13 01:58:34 -08:00
Juan Batiz-Benet
8e888b1d79
p2p/net/swarm: dial adding conn note
2015-01-13 01:23:43 -08:00
Juan Batiz-Benet
25c6ab8a26
p2p/net/swarm: const dial attempts
2015-01-13 01:18:51 -08:00
Juan Batiz-Benet
90d654d55c
p2p/net/swarm cleaned up dial sync
2015-01-13 00:24:38 -08:00
Juan Batiz-Benet
fcece3e32e
p2p/net/swarm: dial once at a time
2015-01-12 22:14:23 -08:00
Juan Batiz-Benet
083bd9cb2d
Merge pull request #548 from jbenet/fix-connect-self
...
p2p/net/swarm: fix connect self problems
2015-01-12 21:45:12 -08:00
Juan Batiz-Benet
9b4d42f7b0
p2p/net/swarm: dial - filter out own addrs
2015-01-12 21:27:21 -08:00
Juan Batiz-Benet
7aa4a83f2e
addr: proper filter + subtract
2015-01-12 20:49:06 -08:00
Juan Batiz-Benet
ddd5c4faee
p2p/net/swarm: fix connect self problems
...
This adds two checks after a successful conn.Dial
* if the remote peer is not who we wanted, close conn
* if the remove peer is outselves, close conn
(the second is redundant, but the codebase may evolve to
end up disabling the first check, so keeping the second
in place helps)
note:
Loopback addresses are actually sent out (they _have to be_,
in cases where there are >1 node in the same machine), so
many times when trying connections, nodes end up dialing
themselves.
2015-01-12 20:17:54 -08:00
Juan Batiz-Benet
81aff954d1
Merge pull request #544 from jbenet/fix/linklocal
...
dont send ip6 link local addrs
2015-01-12 19:54:10 -08:00
Juan Batiz-Benet
ceadfbe791
core: some logging for addresses
2015-01-12 19:15:02 -08:00
Juan Batiz-Benet
0cb0f27b68
bootstrap: print error when failed
2015-01-12 19:15:02 -08:00
Juan Batiz-Benet
7ec1a674e3
p2p/net/swarm: do not usre link local addrs
2015-01-12 19:15:02 -08:00
Juan Batiz-Benet
b36ca66f7c
multiaddr update: recognize link local ip6
2015-01-12 19:15:02 -08:00
Juan Batiz-Benet
1389500461
Merge pull request #530 from jbenet/fix/diag
...
use conns to enumerate peers for network diagnostic
2015-01-12 11:38:37 -08:00
Juan Batiz-Benet
711bb6a054
peers: was not setting the map...
...
cc @whyrusleeping
2015-01-12 11:20:57 -08:00
Juan Batiz-Benet
ab824a51ff
added debug printing to peerstream
2015-01-12 10:53:53 -08:00
Jeromy
a768e841bc
update printout for net diag
2015-01-12 02:55:15 -08:00
Jeromy
6cb46a706c
keep track of number of same connections
2015-01-12 02:55:15 -08:00
Jeromy
5d86ce1f71
adjust naming
2015-01-12 02:55:15 -08:00
Jeromy
98f9ee916e
a better fix for duplicate peers in getPeers()
2015-01-12 02:55:15 -08:00
Jeromy
a2ec7f28dc
use conns to enumerate peers for network diagnostic
2015-01-12 02:55:14 -08:00
Juan Batiz-Benet
cac7e025b8
daemon: log error from gateway
2015-01-12 01:31:59 -08:00
Juan Batiz-Benet
4afb4e090f
daemon gateway async
2015-01-12 01:14:32 -08:00
Juan Batiz-Benet
b299c424da
Merge pull request #541 from jbenet/gateway-server
...
Gateway Server
2015-01-12 01:10:21 -08:00
Juan Batiz-Benet
2c83cd5627
daemon: only try gateway addr if there
2015-01-12 01:05:15 -08:00
Juan Batiz-Benet
f215eee3ed
gateway: cleaned up ServeHTTP func
2015-01-12 01:01:22 -08:00
Juan Batiz-Benet
ed41ac27fd
daemon: refactor common parts of serve funcs
2015-01-12 01:01:21 -08:00
Matt Bell
f39f3fe432
cmd/ipfs: Redirect requests to /webui to webui app
2015-01-11 22:15:33 -08:00
Matt Bell
b5300f1d27
cmd/ipfs: Added gateway MIME type resolution
2015-01-11 22:15:33 -08:00
Matt Bell
e25b08231c
cmd/ipfs: Renamed 'ipfsHandler' to 'gatewayHandler'
2015-01-11 22:15:33 -08:00
Matt Bell
cb84a376bd
cmd/ipfs: Added an ipfsHandler constructor
2015-01-11 22:15:33 -08:00
Simon Kirkby
64cb1b6bf8
CR updates
...
replaced H
moved internal errors into function.
Signed-off-by: Simon Kirkby <tigger@interthingy.com>
2015-01-11 22:15:33 -08:00
Simon Kirkby
32823d2085
Static Website serving and listing
...
adds
trailing slash redirection
index.html return
templated directory listing
Signed off : Simon Kirkby <tigger@interthingy.com>
2015-01-11 22:15:33 -08:00
Matt Bell
9119435cb6
cmd/ipfs: Added gateway server to daemon
2015-01-11 22:15:32 -08:00
Matt Bell
8603e8294f
config: Added a gateway server address
2015-01-11 22:15:32 -08:00
Juan Batiz-Benet
cfbe44004b
Merge pull request #531 from jbenet/ds-query
...
ds-query + ipfs refs local
2015-01-11 21:39:58 -08:00
Juan Batiz-Benet
6a8414bcfb
blockstore Allkeys: ignore non multihash keys
2015-01-11 21:19:47 -08:00
Juan Batiz-Benet
0d059a3881
change block datastore prefix to "/b"
...
the prefix should be as short as possible, as this is a
per-block overhead.
2015-01-11 20:52:34 -08:00
Juan Batiz-Benet
7867e01c90
ipfs ping wording
2015-01-11 20:52:34 -08:00
Juan Batiz-Benet
f7941e9841
ping: use context
2015-01-11 20:52:34 -08:00
Juan Batiz-Benet
374a75b612
refs: tie the contexts together
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
322d6d0b05
cmds: use flushCopy instrad of copychunks
...
@mappum would this work?
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
ddd7540186
cmds: flush output on standard readers
...
cc @mappum can we do this for the copyChunks case?
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
0e2a554c8d
cmds: fix error header output
...
using Header().Set after WriteHeader() has no effect.
cc @mappum
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
92e8a7bcd5
updated datastore for proper query handling
...
Queries now can be cancelled and the resources collected
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
c0cc951118
updated goprocess
2015-01-11 16:59:22 -08:00
Juan Batiz-Benet
708e47fcbc
ipfs blocks local command
...
ipfs blocks local returns _all_ local refs. For now this is one
long op. future commits will make it async.
2015-01-11 16:59:22 -08:00