rht
18f5fcea28
golint util/, thirdparty/
...
and exchange/bitswap/testutils.go
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-06-18 10:03:57 +07:00
rht
4b086eff5a
Remove Notice{,f} logging interface
...
And substitute the lines using Notice{,f} with Info{,f}
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-06-18 10:03:57 +07:00
Juan Batiz-Benet
848502de1b
Merge pull request #1367 from ipfs/wantmanager-cleanup
...
select with context when sending on channels
2015-06-12 15:14:09 -07:00
Jeromy
b12cc09f64
select with context when sending on channels
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-12 11:32:06 -07:00
Jeromy
e014a66bf5
comments from CR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-11 16:43:21 -07:00
Jeromy
c5b40b3b02
prevent wantmanager from leaking goroutines (and memory)
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-11 09:38:09 -07:00
Jeromy
ef294431d4
move util.Key into its own package under blocks
2015-06-01 16:10:08 -07:00
Jeromy
2ec4c9ac45
handle error
2015-05-29 18:28:50 -07:00
Jeromy
11de364384
parallelize block processing
2015-05-29 18:28:50 -07:00
Jeromy
ab161cf6b4
clean up organization of receivemessage and fix race
2015-05-29 18:28:50 -07:00
Jeromy
efa442ada2
adjust naming
2015-05-29 18:28:50 -07:00
Jeromy
f574cd4b80
Move findproviders out of main block request path
...
This PR moves the addition of new blocks to our wantlist (and their
subsequent broadcast to the network) outside of the clientWorker loop.
This allows blocks to more quickly propogate to peers we are already
connected to, where before we had to wait for the previous findProviders
call in clientworker to complete before we could notify our partners of
the next blocks that we want. I then changed the naming of the
clientWorker and related variables to be a bit more appropriate to the
model. Although the clientWorker (now named providerConnector) feels a
bit awkward and should probably be changed.
fix test assumption
2015-05-29 18:28:36 -07:00
rht
3547f7ae33
Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)'
2015-05-26 23:18:04 +07:00
Jeromy
a3356b0417
fix minor data race in bitswap
2015-05-22 13:39:03 -07:00
Jeromy
eff73ccce7
error -> notice, bitswap
2015-05-21 21:24:42 -07:00
Jeromy
ce0d2f46d6
defer tock.Stop()
2015-05-21 03:08:32 -04:00
Jeromy
2f934e8c58
warning -> notice
2015-05-21 03:08:32 -04:00
Jeromy
b71a0aced0
clarify synhronization constructs
2015-05-21 03:08:32 -04:00
Jeromy
c273a3bd4f
better bitswap logging
2015-05-21 03:08:32 -04:00
Jeromy
2882c793e2
add a distribution test with the rebroadcast delay disabled
2015-05-21 03:08:32 -04:00
Juan Batiz-Benet
2eac921e1d
fixup the bitswap readme
2015-05-21 03:08:32 -04:00
Jeromy
829b88420e
explicitly set bitswap message fullness
2015-05-21 03:08:31 -04:00
Jeromy
594c7786c3
turn rebroadcast back on
2015-05-21 03:08:31 -04:00
Jeromy
6ab4bfea95
turn tests down a bit and better context passing
2015-05-21 03:08:31 -04:00
Jeromy
65f815a27b
move taskdone inside lock boundaries
2015-05-21 03:08:31 -04:00
Jeromy
32da687774
fix race bugs
2015-05-21 03:08:31 -04:00
Jeromy
6bf33ad62f
WIP: super awesome bitswap cleanup fixtime
2015-05-21 03:08:31 -04:00
Jeromy
ef967ceeef
contextify peermanager
2015-05-21 03:08:31 -04:00
Jeromy
8443b99c1d
update comments and reintroduce test
2015-05-21 03:08:31 -04:00
Jeromy
a159e6825c
implement peermanager to control outgoing messages
...
Also more refactoring of bitswap in general, including some perf
improvements and eventlog removal.
clean up, and buffer channels
move some things around
correctly buffer work messages
more cleanup, and improve test perf
remove unneccessary test
revert changes to bitswap message, they werent necessary
2015-05-21 03:08:30 -04:00
Jeromy
225b58e31a
remove inflect package
2015-05-20 15:09:20 -07:00
Juan Batiz-Benet
bc6911ef37
bitswap/test: fix timeout on travis
2015-05-19 16:53:13 -04:00
rht
ac7edddb94
Run 'gofmt -s -w' on these files
2015-05-19 06:11:15 +07:00
Jeromy
9049dae674
address comments from CR
2015-05-06 01:35:59 -07:00
Jeromy Johnson
0324b4b283
mild refactor of bitswap
2015-05-06 01:35:57 -07:00
Juan Batiz-Benet
99596435a7
Merge pull request #1166 from ipfs/fix/bitswap-multisend
...
try harder to not send duplicate blocks
2015-05-05 00:07:53 -04:00
Jeromy
6f04302a48
remove logging of dup blocks, move to counters for bitswap stat
2015-05-04 03:12:17 -07:00
Jeromy
867186c054
dont create a new ticker each loop
2015-05-01 23:11:40 -07:00
Jeromy
f998339acb
remove some redundant blockputs to avoid false duplicate block receives
2015-04-29 19:59:18 -07:00
Jeromy
86fb07aed7
try harder to not send duplicate blocks
2015-04-29 01:36:47 -07:00
Henry
5fff7742f3
godeps: move (go)goprotobuf to github location
2015-04-28 13:42:22 +02:00
Jeromy
ea2375e8b4
let wantlist command show other peers wantlists
2015-04-28 01:51:30 -07:00
Juan Batiz-Benet
140cd1fd1b
remove debugerrors
...
We now consider debugerrors harmful: we've run into cases where
debugerror.Wrap() hid valuable error information (err == io.EOF?).
I've removed them from the main code, but left them in some tests.
Go errors are lacking, but unfortunately, this isn't the solution.
It is possible that debugerros.New or debugerrors.Errorf should
remain still (i.e. only remove debugerrors.Wrap) but we don't use
these errors often enough to keep.
2015-04-20 00:35:35 -07:00
Jeromy Johnson
43eeab9549
change env var for bitswap
...
changed IPFS_TASK_WORKERS to IPFS_BITSWAP_TASK_WORKERS
2015-04-19 13:10:43 -07:00
Jeromy
16e04356b9
address comments from CR
2015-04-19 11:19:51 -07:00
Jeromy
3629d7d548
make number of workers tuneable by an env var
2015-04-17 15:57:50 -07:00
Jeromy
3178dfe78b
add more bitswap task workers
2015-04-17 12:43:31 -07:00
Jeromy
8450a8d4d8
address comments from CR
2015-04-06 21:49:14 -07:00
Jeromy
76e879c9e0
fix some logic
2015-04-06 21:49:14 -07:00
Jeromy
738db201d9
some code cleanup and commenting
2015-04-06 21:49:14 -07:00