Commit graph

46 commits

Author SHA1 Message Date
Igor Katson
a73e0e675f
tweak peer_connection log message 2023-12-05 23:46:18 +00:00
Igor Katson
ca8989f8e6
Saving 2023-12-05 23:38:05 +00:00
Igor Katson
cc92afcdec
Prevent self-connections just in case 2023-12-05 22:19:58 +00:00
Igor Katson
efaa36a161
SAving, its broken 2023-12-05 20:10:09 +00:00
Igor Katson
65c69f576b
Code fully compiles for processing incoming peers 2023-12-05 20:10:09 +00:00
Igor Katson
9c7cf61e1a
Handshake clone to owned 2023-12-05 20:10:09 +00:00
Igor Katson
215bccb89c
Fix build on rust 1.73 2023-12-05 20:08:37 +00:00
Igor Katson
006d83d6a7
Update docs, cleanup for 4.0.0 release 2023-12-03 12:14:50 +00:00
Igor Katson
99db087cf1
Improving typescript types 2023-12-02 15:35:26 +00:00
Igor Katson
42b1fb09c2
Merging session and user-provided peer timeouts 2023-11-30 16:26:57 +00:00
Igor Katson
a5ae2988b8
Downgraded a bunch of messages from debug to trace 2023-11-29 23:45:08 +00:00
Igor Katson
d7a37c1b48
Saving 2023-11-24 18:28:46 +00:00
Igor Katson
3797a91be9
Add per-peer counters 2023-11-20 13:29:12 +00:00
Igor Katson
48a14823fa
Changed log to tracing 2023-11-19 13:05:42 +00:00
Igor Katson
2203ffe4a9
Fixed bugs 2023-11-18 00:20:49 +00:00
Igor Katson
9e8f235cb4
Add read/write timeouts and avoid stuck peers 2022-12-04 14:51:48 +00:00
Igor Katson
18b99c91a1 Update default peer TCP connect timeout to 10s 2021-10-08 23:54:26 +01:00
Igor Katson
bca55891c1 Wrap reading files into block_in_place 2021-09-29 19:10:32 +01:00
Igor Katson
9e3e3a27ff Nothing much 2021-07-13 14:59:44 +01:00
Igor Katson
1cd6caee76 Fix bugs 2021-07-13 13:16:59 +01:00
Igor Katson
6eef3b9b66 A small refactor 2021-07-12 21:59:08 +01:00
Igor Katson
64b1e47c77 Add a semaphore around peers 2021-07-04 11:36:16 +01:00
Igor Katson
ad867e8e3c Move everything to workspaces 2021-07-03 19:10:59 +01:00
Igor Katson
b4ade5eb13 Nothing 2021-07-03 12:52:47 +01:00
Igor Katson
897517521e Peer info reader done 2021-07-03 00:22:46 +01:00
Igor Katson
46e87a9b80 Split stuff into more files 2021-07-02 22:32:55 +01:00
Igor Katson
48dcf2d1bd I can now download torrent metainfo from peers!! 2021-07-02 17:58:53 +01:00
Igor Katson
302e95649d Screwing around with extended messages 2021-07-02 13:00:46 +01:00
Igor Katson
d722f0edcb Remove all linter warnings 2021-07-02 10:21:19 +01:00
Igor Katson
1f299247d2 Abstract away peer handler 2021-07-02 10:12:48 +01:00
Igor Katson
5f60f9e1b4 Make a serde bencode serializer 2021-07-01 23:37:57 +01:00
Igor Katson
5942e6a9d5 Updates 2021-07-01 19:17:44 +01:00
Igor Katson
1cb7a7bbc6 Enable elapsed stats calculation and slow piece stealing 2021-06-30 00:32:38 +01:00
Igor Katson
e843209aa9 nothing 2021-06-30 00:00:44 +01:00
Igor Katson
b26af687b7 Check the chunk before uploading 2021-06-28 22:21:21 +01:00
Igor Katson
df282ae9d8 Dude this is like production ready! 2021-06-28 21:06:00 +01:00
Igor Katson
34dd074310 Openssl + a bunch of other refactorings 2021-06-28 20:40:13 +01:00
Igor Katson
b4b22ea9a4 Optimize on transmit haves 2021-06-28 16:55:50 +01:00
Igor Katson
14b62b45c5 Downloading chunks now does not copy the chunks, but writes them straight to disk. (Still reads into a buffer first though, but does not allocate on every chunk) 2021-06-28 16:37:15 +01:00
Igor Katson
fab43a8d23 Uploading chunks now reads straight into write buffer 2021-06-28 16:09:20 +01:00
Igor Katson
2192842099 Refactoring reading a bit 2021-06-28 15:44:29 +01:00
Igor Katson
a799ff1219 Move all file operatiosn into a separate file 2021-06-28 15:17:57 +01:00
Igor Katson
5f8100ebad Nothing 2021-06-28 14:58:53 +01:00
Igor Katson
1e478aabac Move peer state to a separate file 2021-06-28 14:23:28 +01:00
Igor Katson
0d85eb9f2a Split the huge torrent manager into 3 classes. All public access members but ok for the start 2021-06-28 12:30:23 +01:00
Igor Katson
bde18ab734 Refactor 2021-06-28 11:36:47 +01:00