Commit Graph

409 Commits

Author SHA1 Message Date
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
Jeromy
d765c14e8f refactor task queue to have queues per peer 2015-04-06 21:49:14 -07:00
Ho-Sheng Hsiao
bf22aeec0a Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Jeromy
5eb08c4473 add warning comment about possibly leaked goroutines 2015-03-09 00:22:14 -07:00
Jeromy
8ed0f4b854 respect contexts in a more timely manner 2015-03-08 14:10:02 -07:00
Juan Batiz-Benet
1d5b903611 added cancel func calls previously ignored 2015-03-07 09:31:46 -08:00
Henry
aa55eebe7e fixed two more 2015-03-07 14:47:07 +01:00
Jeromy
34961a5aef toprovide -> toProvide 2015-03-05 16:37:40 -08:00
Jeromy
bfee4894b4 simplify provideCollector 2015-03-05 16:27:47 -08:00
Jeromy
8937f5fbda implement a worker to consolidate HasBlock provide calls into one to alieviate memory pressure 2015-03-05 15:18:57 -08:00
Juan Batiz-Benet
9d167cd5e8 testfix: dont break 8k goroutine limit under race 2015-03-04 07:34:04 -08:00
Henry
d743801638 godep: changed back to inflect upstream 2015-03-01 13:22:27 +01:00
Henry
6cc6a80039 godeps: maybebtc renamed is account 2015-02-27 14:40:45 +01:00
Jeromy
3c8a391fe4 dont put wantlist getter in exchange interface 2015-02-27 00:12:21 -08:00