Jeromy
8937f5fbda
implement a worker to consolidate HasBlock provide calls into one to alieviate memory pressure
2015-03-05 15:18:57 -08:00
Jeromy
98a183d53e
fix output formatting on stat
2015-02-27 00:12:21 -08:00
Jeromy
b514478f32
rename wantlist to bitswap, add stat command
2015-02-27 00:12:21 -08:00
Jeromy
559a241566
implement a simple wantlist command to allow the user to view their wantlist
2015-02-27 00:12:21 -08:00
Jeromy
8256b18058
make sure not to orphan any extra goroutines
2015-02-26 23:22:12 -08:00
Jeromy
9c66f65410
make wantlist updates to connected peers happen async, dramatically improves performance between connected nodes
2015-02-26 23:22:12 -08:00
Henry
92d08db7a5
rewrote import paths of go.net/context to use golang.org/x/context
...
- updated go-ctxgroup and goprocess
ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
- p2p/net/mock/mock_net.go
- routing/dht/dht.go
- updated context from hg repo to git
prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo
- updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)
Aaron Jacobs (2):
net/context: Don't accept a context in the DoSomethingSlow example.
context: Be clear that users must cancel the result of WithCancel.
Andrew Gerrand (1):
go.net: use golang.org/x/... import paths
Bryan C. Mills (1):
net/context: Don't leak goroutines in Done example.
Damien Neil (1):
context: fix removal of cancelled timer contexts from parent
David Symonds (2):
context: Fix WithValue example code.
net: add import comments.
Sameer Ajmani (1):
context: fix TestAllocs to account for ints in interfaces
2015-02-25 11:58:19 +01:00
Jeromy
d7eb57f48f
add worker to bitswap for reproviding new blocks
2015-02-19 20:07:02 -08:00
Jeromy
a29c0fc751
move blocking calls out of single threaded loops, cancel contexts ASAP
2015-02-19 06:04:39 +00:00
Jeromy
de057f60dd
fix a panic caused by context cancelling closing a promise channel
2015-02-12 23:47:11 +00:00
Juan Batiz-Benet
58f39687cf
logs: removed all log.Errors unhelpful to users
...
Let's save log.Error for things the user can take action on.
Moved all our diagnostics to log.Debug. We can ideally reduce them
even further.
2015-02-03 01:06:07 -08:00
Brian Tiger Chow
195c2f3e28
log(bitswap) add message when message received
2015-02-01 22:08:49 -08:00
Brian Tiger Chow
800a3eb940
refactor(bitswap) move workers to bottom of file
2015-02-01 22:08:49 -08:00
Brian Tiger Chow
d9a8cfbd72
feat(bitswap) add deliverBlocks Event
2015-02-01 22:08:49 -08:00
Brian Tiger Chow
4ae02bc022
fix(bitswap) rename PeerToQuery to send wantlist
...
log(bitswap) remove ambiguous event
2015-02-01 22:08:49 -08:00
Brian Tiger Chow
d78b76ddb4
log(bitswap) add bitswap loggable
2015-02-01 22:08:49 -08:00
Brian Tiger Chow
c114b04ae1
feat(bitswap): synchronous close
2015-02-01 21:54:19 -08:00
Brian Tiger Chow
0ec0a6ab87
fix inflection
2015-01-30 06:57:41 -08:00
Brian Tiger Chow
6c2d799cb9
periodically print the number of keys in the wantlist (if any)
2015-01-30 06:57:41 -08:00
Brian Tiger Chow
351631a580
pass as param
2015-01-30 06:57:41 -08:00
Brian Tiger Chow
7e90fa95c9
log(bitswap): clean up
2015-01-30 06:57:41 -08:00
Brian Tiger Chow
faded10870
fix(bitswap): handling of network notification
2015-01-24 11:34:30 -08:00
Brian Tiger Chow
bbc54516bf
revert bitswap network notification
...
@jbenet @whyrusleeping
2015-01-24 11:47:28 -08:00
Juan Batiz-Benet
1054487690
bitswap: respond to peers connecting + disconnecting
...
With these notifications, bitswap can reclaim all resources
for any outstanding work for a peer.
cc @briantigerchow @whyrusleeping
2015-01-24 09:13:44 -08:00
Brian Tiger Chow
6fedf259eb
remove prefix logger
2015-01-24 00:30:56 -08:00
Brian Tiger Chow
bb89e0d8d7
misc(bitswap): shorten comment and rename var
2015-01-21 17:09:40 -08:00
Brian Tiger Chow
2f247f3355
rm logging statements and inline send
2015-01-21 17:09:40 -08:00
Brian Tiger Chow
129d413f0e
chore(bitswap): rm todo
2015-01-21 17:09:40 -08:00
Brian Tiger Chow
3d3ac08fcf
chore(bitswap): rm debug log (covered by eventlog)
2015-01-21 17:09:39 -08:00
Brian Tiger Chow
5985854099
fix: return pointer
...
@whyrusleeping
2015-01-19 03:08:05 -08:00
Brian Tiger Chow
60e288ed4b
fix(bitswap.decision.Engine) enqueue only the freshest messages
...
Before, the engine worker would pop a task and block on send to the
bitswap worker even if the bitswap worker wasn't to receive. Since the
task could have been invalidated during this blocking send, a small
number of stale (already acquired) blocks would be send to partners.
Now, tasks are only popped off of the queue when bitswap is ready to
send them over the wire. This is accomplished by removing the
outboxChanBuffer and implementing a two-phase communication sequence.
2015-01-19 03:07:21 -08:00
Brian Tiger Chow
6a580e50d3
doc
2015-01-18 15:09:53 -08:00
Brian Tiger Chow
884143bf9c
move generic packages to thirdparty (see thirdparty/README.md)
2015-01-18 14:04:45 -08:00
Jeromy
3c55902811
rewrite as single line defer logs
2015-01-15 04:45:34 +00:00
Jeromy
bae8b9f4c0
starting to move important events over to EventBegin/Done
2015-01-15 04:17:17 +00:00
Jeromy
a09854db97
early out if no entries in wantlist
2015-01-11 08:09:37 +00:00
Juan Batiz-Benet
aeb2e07198
bitswap: remove DialPeer from interface
...
Bitswap doesn't usually care about dialing. the underlying
network adapter can make sure of that.
2015-01-05 04:55:02 -08:00
Juan Batiz-Benet
9c6228d18f
bitswap and dht: lots of debugging logs
2015-01-05 00:16:53 -08:00
Juan Batiz-Benet
d357b0ac00
bitswap debug logging
2015-01-05 00:16:53 -08:00
Juan Batiz-Benet
5639042df5
bitswap: send wantlist code reuse + debug logs
2015-01-05 00:16:52 -08:00
Juan Batiz-Benet
7629ad7ec7
bitswap: add self peer.ID
2015-01-05 00:16:52 -08:00
Juan Batiz-Benet
89f5cd4c94
introducing p2p pkg
...
I think it's time to move a lot of the peer-to-peer networking
but-not-ipfs-specific things into its own package: p2p.
This could in the future be split off into its own library.
The first thing to go is the peer.
2015-01-02 08:46:45 -08:00
Brian Tiger Chow
c933d439b7
misc docs and fmting
2014-12-24 09:31:17 -05:00
Brian Tiger Chow
c34132e080
refactor(bitswap) change PeerInfo to ID in bitswap package
...
@jbenet @whyrusleeping
This commit replaces peer.PeerInfo with peer.ID in the bitswap package
2014-12-23 09:21:08 -08:00
Brian Tiger Chow
27dc9594ba
refactor(bitswap) bitswap.Network now abstracts ipfs.Network + ipfs.Routing
...
@jbenet @whyrusleeping
the next commit will change bitswap.Network.FindProviders to only deal
with IDs
2014-12-23 09:19:21 -08:00
Brian Tiger Chow
c6294646e9
fix(bitswap) always add addresses
2014-12-23 09:17:40 -08:00
Brian Tiger Chow
070b633df8
style(bitswap) rename to network
2014-12-23 09:16:00 -08:00
Brian Tiger Chow
4ab4da7e2b
style(bitswap) rename
2014-12-23 09:10:44 -08:00
Brian Tiger Chow
fb75184c35
fix(bitswap) always use prvivate send method to send
...
cc @whyrusleeping
2014-12-23 09:09:34 -08:00
Brian Tiger Chow
d0d220f9de
fix(bitswap) always dial
2014-12-23 09:08:11 -08:00