Commit graph

97 commits

Author SHA1 Message Date
Igor Katson
4d993aeb6d
Announcing works and peers connect to us! but havent seen nothing uploaded yet, it says they have it fully 2023-12-05 21:30:35 +00:00
Igor Katson
6bb5d01c0f
Announcing port on DHT 2023-12-05 21:17:37 +00:00
Igor Katson
162afe3056
DHT announce compiles 2023-12-05 21:13:31 +00:00
Igor Katson
65c69f576b
Code fully compiles for processing incoming peers 2023-12-05 20:10:09 +00:00
Igor Katson
41fb3bfd37
Accepting TCP connections + publishing = works. Still yet to pass it to the live torrent 2023-12-05 20:10:09 +00:00
Igor Katson
006d83d6a7
Update docs, cleanup for 4.0.0 release 2023-12-03 12:14:50 +00:00
Igor Katson
28c2db2a37
Made changes for Desktop app to work 2023-12-02 21:12:15 +00:00
Igor Katson
21b1bd9e7d
A bit finer grained timeout interval in get_peers loop 2023-12-01 08:53:05 +00:00
Igor Katson
b3ab2c4d4c
Code to serialize peer store 2023-11-30 22:07:24 +00:00
Igor Katson
261ad3cc7c
1/n Added peer store 2023-11-30 20:42:05 +00:00
Igor Katson
80b153dbca
Print timeout message better 2023-11-30 18:25:38 +00:00
Igor Katson
18c845d6f0
Shorten debug for messages 2023-11-30 17:34:39 +00:00
Igor Katson
32a220f17c
Shorten debug for messages 2023-11-30 17:28:32 +00:00
Igor Katson
558aa3f246
Fix accidentally removed line - sending nodes on getPeersRequest 2023-11-30 16:52:03 +00:00
Igor Katson
dc50de31dc
Restore DHT lib timeouts 2023-11-30 15:38:22 +00:00
Igor Katson
4af26ae246
Add max size to routing table 2023-11-30 15:35:08 +00:00
Igor Katson
16a4d22b6b
Fix a bug in get_bit() 2023-11-30 14:49:39 +00:00
Igor Katson
fee2690aae
With pinger its not entirely bad now, but still pretty horrible 2023-11-30 13:58:33 +00:00
Igor Katson
8d58a9f419
Doesnt refresh properly 2023-11-30 13:30:11 +00:00
Igor Katson
ebd0d818eb
Fix a bug in pinger, attribute log messages better 2023-11-30 11:57:03 +00:00
Igor Katson
c8967f2469
Bucket refresher. Broken 2023-11-30 11:38:15 +00:00
Igor Katson
658bbdb652
Add "last_refreshed" property on buckets 2023-11-30 09:59:13 +00:00
Igor Katson
f04277cc11
Make questionable node pings better 2023-11-30 09:38:35 +00:00
Igor Katson
210a3d5d3e
Use concrete type for DHT peers 2023-11-30 08:06:55 +00:00
Igor Katson
7d02d79ff5
Using response freshness in ordering 2023-11-29 23:57:11 +00:00
Igor Katson
a5ae2988b8
Downgraded a bunch of messages from debug to trace 2023-11-29 23:45:08 +00:00
Igor Katson
aa2a41a53c
Fixing up bugs, refactored DHT works alright now 2023-11-29 23:12:20 +00:00
Igor Katson
69b9918e4f
Going so far again... 2023-11-29 19:40:31 +00:00
Igor Katson
ea8cd02a7a
peer handling now works well 2023-11-29 18:22:00 +00:00
Igor Katson
672dcce484
rewrote it, still crappy but easier to understand 2023-11-29 16:39:09 +00:00
Igor Katson
826d1b8f1d
wtf... its getting worse. Lets see if we can simplify it a lot 2023-11-29 14:48:22 +00:00
Igor Katson
6518dc6eff
Saving before slight refactor 2023-11-29 13:48:27 +00:00
Igor Katson
dc3da89b59
DHT routing table tracking errors better 2023-11-29 10:40:29 +00:00
Igor Katson
74c11415f1
Return back rate limiting and not re-querying same nodes 2023-11-28 19:20:50 +00:00
Igor Katson
3b3af34152
Wow, this isnt bad at all, now DHT makes much less queries but restarts 2023-11-28 18:28:59 +00:00
Igor Katson
242f064328
Get back old behavior 2023-11-28 16:14:49 +00:00
Igor Katson
81428e30a2
Nothing 2023-11-28 15:55:13 +00:00
Igor Katson
93740ec84b
Created more tasks but it impacts perf and memory badly 2023-11-28 15:35:27 +00:00
Igor Katson
91c99a272f
cargo fmt / clippy / fix 2023-11-28 11:35:28 +00:00
Igor Katson
7da46d0bbf
UDP send errors now kill requests right away 2023-11-28 11:32:34 +00:00
Igor Katson
e9b7103c26
silence DHT timeout error 2023-11-28 10:55:43 +00:00
Igor Katson
336bf751e3
DHT: better tracking requests/responses 2023-11-28 10:53:22 +00:00
Igor Katson
0478577a72
Nothing 2023-11-28 09:23:05 +00:00
Igor Katson
e012cd94a3
Remove timed out DHT requests 2023-11-28 08:56:27 +00:00
Igor Katson
c7cf5eedef
Remove the giant lock from dht 2023-11-28 08:03:12 +00:00
Igor Katson
eaf5021908
Next id -> AtomicU16 2023-11-28 07:40:27 +00:00
Igor Katson
692fef1394
Poor mans algo to resend requests 2023-11-27 22:05:46 +00:00
Igor Katson
ab5ae527aa
A bunch of initial changes to DHT 2023-11-27 18:53:20 +00:00
Igor Katson
d8fdb94305
DHT instrumentation 2023-11-25 15:15:16 +00:00
Igor Katson
0c4844f534
1/n Add pause/start actions 2023-11-24 14:19:39 +00:00