Commit Graph

74 Commits

Author SHA1 Message Date
da406714ff
adopt to new os and message file refactor 2024-07-24 17:55:31 +02:00
16cb755191
fix dangerous unchecked file stream read 2024-07-22 19:49:02 +02:00
54ace9d0b2
and use new backend code (partially transitioned to os backend) 2024-07-17 17:17:07 +02:00
e50e74e12f
add os backend and add threaded hashing
still meh but nicer
2024-07-17 17:13:32 +02:00
f730844771
abstract aways file2rwmapped construction to lower visibility 2024-07-15 17:44:30 +02:00
3fcfbc11a4
reduce includes and some scope
hopefully fixes the windows obj being too large
2024-07-15 16:38:33 +02:00
0b2fa40cb9
lower rat on join
TODO: its indescriminate, only announce to fresh peers
2024-07-15 14:38:53 +02:00
489556e322
fix front access to empty array
and increase send timeout assert
2024-07-15 11:48:16 +02:00
10756e13ce
small fixes 2024-07-14 20:11:37 +02:00
74414d0999
re annouce with exponential back-off 2024-07-14 12:38:00 +02:00
bc5599a230
refactor sending transfers the same way as receiving 2024-07-13 13:52:43 +02:00
ca89e43a40
refactor extract chunk picker systems 2024-07-13 12:36:49 +02:00
dd04e6131a
transfer stats 2024-07-13 11:46:33 +02:00
31253f5708
tweak ft max numbers and add stats comp 2024-07-12 15:04:49 +02:00
eff25cb10b
meh 2024-07-12 14:42:13 +02:00
6e681aa3fd
light cca refator and expose some cca values to the outside 2024-07-12 13:14:24 +02:00
1d97dbe73d
rework bitset queue (worse) and send have_all instead (but better) 2024-07-10 15:47:33 +02:00
f449cf623d
fix bitset sizecheck and send out bitsets the first time someone
announces participation
2024-07-10 12:27:19 +02:00
bee7de3fb7
sequential strat now respects ReadHeadHint 2024-07-10 11:26:47 +02:00
822b979286
object download prio, not set anywhere yet, but the code is there now 2024-07-10 11:13:57 +02:00
ef91ec14fc
explicit and better rng, remove junk and old code 2024-07-10 10:41:25 +02:00
699957f79a
more consistenly tag cp update and lower cooldown just in case 2024-07-09 14:45:00 +02:00
02d58928f4
small refactors 2024-07-09 11:40:01 +02:00
60e6f91541
cleanup old workaround code 2024-07-09 11:04:19 +02:00
92373d34f7
work around missing contact events (better now)
fix missing ft event on reset (oops)
hard assert sending transfers can not time out higher level
2024-07-09 11:00:59 +02:00
e0b278b168
hot fix 2024-07-08 18:46:26 +02:00
e5681b4ad5
rework chunk picker update logic and participation logic
disable most spammy log
2024-07-08 18:12:47 +02:00
79e3070422
better random init 2024-07-07 17:13:30 +02:00
bf1fa64973
chunk picker strategies 2024-07-07 16:49:31 +02:00
11dee5870c
fix round robin and reduce num empty spins to improve perf 2024-07-07 15:55:22 +02:00
269daaa764
work around missing contact events and properly clear on exit 2024-07-07 14:15:26 +02:00
ea945e6360
increase out number for 4 peers until proper sending per peer is implemented 2024-07-07 13:56:52 +02:00
b068819069
higher tickrate if open requests
(we expect an init soon and dont want to bounce around)
2024-07-07 13:21:59 +02:00
b64a4ae31c
better bitset print 2024-07-07 13:07:57 +02:00
266cddf816
properly account for open requests when determining how much to request 2024-07-07 12:45:23 +02:00
d19fc6ba30
new chunk picker, basically working
still needs work on the sending side and more bug fixes
2024-07-03 12:11:20 +02:00
3fd6183c21
combined id refactor 2024-07-02 16:09:59 +02:00
92b3d1a5fb
more chunk picker prep 2024-07-02 15:52:25 +02:00
edf58b70f5
receiving count for peer 2024-07-02 14:54:08 +02:00
33560f8f8a
receiving transfers refactor 2024-06-30 14:03:06 +02:00
3286a7228c
more minor refactoring 2024-06-28 22:18:11 +02:00
b53e291c68
wip chunk picker (still unused) and a small refactor 2024-06-28 15:13:17 +02:00
27cade4dfe
track remote have and bitset 2024-06-25 21:09:46 +02:00
0b4041db7e
move bitset to util 2024-06-25 12:45:28 +02:00
e9e38db1d5
move self have_chunk to bitset 2024-06-25 12:08:17 +02:00
c8619561ec
refactor: move (object/content) components out 2024-06-24 16:42:23 +02:00
1b630bc07f
impl and test bitset util 2024-06-24 12:14:51 +02:00
ee2411b8e0
hack: send ft1_have every chunk we receive
produces unnecessary overhead, should be bundled
2024-06-23 15:12:31 +02:00
8972386971
send out pc1 announces for ft infohash
will eliminate the guesswork in the future
2024-06-23 10:17:48 +02:00
bcde244a3c
handle pc1 announce and reduce chance to sample random peer
(will remove random sample sometime in the future)
2024-06-22 17:01:52 +02:00