Commit graph

312 commits

Author SHA1 Message Date
Igor Katson
2693c0eb71
Move tx into peer 2023-11-20 11:42:37 +00:00
Igor Katson
f1cc9162e9
Move requests_sem to peer 2023-11-20 11:37:18 +00:00
Igor Katson
99dfb14895
Move have_notify into the peer 2023-11-20 11:34:32 +00:00
Igor Katson
8c67127a85
Made peer chunk requester the same task as manage_peer 2023-11-20 11:30:16 +00:00
Igor Katson
6d8e245103
Fix librqbit readme 2023-11-20 10:56:40 +00:00
Igor Katson
b06ef71cf3
Merge pull request #35 from ikatson/refactor-peer-system
Major refactoring
2023-11-20 10:39:09 +00:00
Igor Katson
1b68b0eac1
Remove unnecessary debugging files 2023-11-20 10:35:22 +00:00
Igor Katson
b751b98a60
Update versions to 3.0.0 as theres a lot of changes internally 2023-11-20 10:34:43 +00:00
Igor Katson
e2f909ca07
Add some documentation 2023-11-20 10:30:21 +00:00
Igor Katson
2695a8ec26
Preventively fixed other race conditions 2023-11-20 10:14:08 +00:00
Igor Katson
34ee9d9bd9
Remove Option<BF> to just BF 2023-11-20 09:17:42 +00:00
Igor Katson
1de690a74b
nothing 2023-11-20 01:55:27 +00:00
Igor Katson
a9794de37e
New bug showing up when torrent is downloading super fast 2023-11-20 01:43:58 +00:00
Igor Katson
4a331d97c9
Make default peer connect timeout less = 2s 2023-11-20 01:24:19 +00:00
Igor Katson
123859328f
Remove old slow peer stats computation 2023-11-20 01:19:24 +00:00
Igor Katson
88c2f9e926
Finally fixed a stupid tracing bug with counters 2023-11-20 01:13:34 +00:00
Igor Katson
aa99872e52
WTF is going on with counters 2023-11-20 00:55:31 +00:00
Igor Katson
22ea146ff6
Starting to implement aggregate peer stats 2023-11-19 23:23:31 +00:00
Igor Katson
0c89ee9248
Add parameter with_peers to stats_snapshot while its slow 2023-11-19 23:11:11 +00:00
Igor Katson
d6cef0952c
Remove an instance of double-locking in the same scope 2023-11-19 23:04:13 +00:00
Igor Katson
2ebbc0a828
Add examples 2023-11-19 22:48:19 +00:00
Igor Katson
adb98a2d89
Add more docs 2023-11-19 22:06:41 +00:00
Igor Katson
0170b19fcd
Remove inline-nevers 2023-11-19 21:50:50 +00:00
Igor Katson
98dbecf136
Fix a logging bug 2023-11-19 21:47:58 +00:00
Igor Katson
b40d33b0ad
Fix a bug with wrong number of queued peers 2023-11-19 21:29:42 +00:00
Igor Katson
b891cd40dd
Remove a couple unused methods 2023-11-19 21:06:14 +00:00
Igor Katson
0c6781ba4b
Saving 2023-11-19 20:59:01 +00:00
Igor Katson
4b3da0bd69
Trying to see why it hangs for a bit sometimes 2023-11-19 20:38:41 +00:00
Igor Katson
17d40824b4
Timing on_received_message 2023-11-19 20:21:26 +00:00
Igor Katson
124c6057be
more counters 2023-11-19 20:15:42 +00:00
Igor Katson
3f0c4b7237
Fix the NotNeeded warning 2023-11-19 20:01:08 +00:00
Igor Katson
2ad288199d
timed existence for lock time debugging 2023-11-19 19:42:19 +00:00
Igor Katson
ff71ade190
timed existence for lock time debugging 2023-11-19 19:40:45 +00:00
Igor Katson
1a55936346
Nothing 2023-11-19 18:32:41 +00:00
Igor Katson
2b842024c0
Debugged one more deadlock (or it was the same one) 2023-11-19 18:15:18 +00:00
Igor Katson
19c3fd70ff
Uninline some methods for easier backtrace debugging 2023-11-19 16:30:56 +00:00
Igor Katson
adf3eef877
Removed a couple deadlocks 2023-11-19 16:25:59 +00:00
Igor Katson
38c99023ac
Change peer states to dashmap 2023-11-19 15:47:14 +00:00
Igor Katson
a745257be2
Split up a couple methods 2023-11-19 14:04:47 +00:00
Igor Katson
d39479a251
Small refactorings 2023-11-19 13:44:14 +00:00
Igor Katson
48a14823fa
Changed log to tracing 2023-11-19 13:05:42 +00:00
Igor Katson
db12bba7a6
Not even sure what I'm doing 2023-11-18 10:08:39 +00:00
Igor Katson
2203ffe4a9
Fixed bugs 2023-11-18 00:20:49 +00:00
Igor Katson
6ebf2120a4
Peers now reconnect! 2023-11-17 23:30:07 +00:00
Igor Katson
55e692d476
2/n Wrap PeerState into peer 2023-11-17 22:51:05 +00:00
Igor Katson
8e50829586
1/n [exponential backoff peers]: refactor "tx" to be once per connected peer 2023-11-17 22:32:04 +00:00
Igor Katson
c10f4fcd1b
Fix librqbit readme 2023-11-16 07:47:00 +00:00
Igor Katson
da3e6abc5a
Fix docs link 2023-11-16 07:39:49 +00:00
Igor Katson
62ed868208
Update dependencies 2023-11-16 07:37:40 +00:00
Igor Katson
0cd9981f62
Merge pull request #34 from ALEZ-DEV/main
Code example now compile
2023-11-15 20:32:05 +00:00