Commit graph

84 commits

Author SHA1 Message Date
Igor Katson
0bb1c77456
Decode more peer ids 2024-08-29 12:48:14 +01:00
Igor Katson
fc7ae3bbe5
[Feature] option to disable upload 2024-08-28 18:02:25 +01:00
Igor Katson
9f798696ff
reduce noisy test logs 2024-08-28 17:44:46 +01:00
Igor Katson
90bfb85bcc
Some cleanups for utpex 2024-08-28 10:20:45 +01:00
Ivan
bbc951733f
PEX: Announce support and message definition 2024-08-28 10:06:16 +01:00
LIAUD Corentin
35d57ae8a2
feat: add on_piece_completed method on TorrentStorage 2024-08-27 22:00:14 +02:00
Ivan
3c0baacaa7 Fill yourip in extended handshake 2024-08-21 20:00:31 +02:00
Igor Katson
032b34c5d6
upgrade a log message to debug 2024-08-19 13:05:15 +01:00
Igor Katson
53d61d0428
fixing bugs 2024-08-14 12:14:57 +01:00
Igor Katson
c7ed475f54
Use bytes crate for zerocopy and memory re-use (#182)
* Use bytes. Not yet zerocopy everywhere but compiles

* Actually zerocopy

* Actually zerocopy

* Not actually storing the torrent on disk now
2024-08-14 12:08:46 +01:00
Igor Katson
70dcb2e6cb
First pass to implement socks5 support 2024-08-08 00:46:39 +01:00
Igor Katson
f63e729da1
Fix magnet links 2024-05-17 23:57:25 +01:00
Igor Katson
8a86d04631 Dont spam haves 2024-05-03 20:24:39 +04:00
Igor Katson
44aa75f34b Reimplement maybe_transmit_haves with a broadcast channel 2024-05-03 20:24:39 +04:00
Igor Katson
2625896263 Remove "bad ip" comment again 2024-05-03 20:24:39 +04:00
Igor Katson
573185bcfa Remove async_trait 2024-05-03 20:24:39 +04:00
Igor Katson
1744f0c101 Disk write queue 2024-05-03 20:24:39 +04:00
Igor Katson
e658b960e3 read_buf: use unsafe but remove callback 2024-05-03 20:24:39 +04:00
Igor Katson
01cbeabd51 nothing... 2024-05-03 20:24:39 +04:00
Igor Katson
16a28a4d96 Restore simulation 2024-05-03 20:24:39 +04:00
Igor Katson
86c95e7c71 Checking once more 2024-05-03 20:24:39 +04:00
Igor Katson
438392da1d Perfect sim is working! 2024-05-03 20:24:39 +04:00
Igor Katson
0a1d389bc7 Remove a hack 2024-05-03 02:53:52 +04:00
Igor Katson
07a5b69a25 Hacked in mmap default 2024-05-03 02:53:52 +04:00
Igor Katson
d25309e358 Defer writes command line flag 2024-05-03 02:53:52 +04:00
Igor Katson
f3a4e99bb6 allowlist ip 2024-05-03 02:53:52 +04:00
Igor Katson
4054c36d5e Revert "allowlist ip"
This reverts commit 1860cc632724c1cb70b026e969e104d1f657aac4.
2024-05-03 02:53:52 +04:00
Igor Katson
45375fe2db allowlist ip 2024-05-03 02:53:52 +04:00
Igor Katson
3d46d7cb97
Fix clippy lints related to recent bug 2024-04-24 14:19:04 +01:00
Igor Katson
048f4d1645
Add bogus peer simulation to e2e tests 2024-03-29 20:32:08 +00:00
Igor Katson
fa05fe8376
Box<[u8]> instead of Vec<u8> for ByteBufOwned 2024-03-29 13:44:10 +00:00
Igor Katson
f42de46878
Revert "Box<[u8]> instead of Vec<u8> for ByteBufOwned"
This reverts commit deee41cd93.
2024-03-29 13:00:57 +00:00
Igor Katson
deee41cd93
Box<[u8]> instead of Vec<u8> for ByteBufOwned 2024-03-29 11:00:58 +00:00
Igor Katson
2778d46bb3
End-to-end unit test (#90)
* First implementation of create_torrent_file

* Test harness for e2e preparing

* Saving

* Continuing test harness

* Continuing test harness

* Continuing test harness

* All servers are running

* Full e2e harness done

* Test e2e harness working fine

* Remove lints

* injecting faults

* The e2e test runs continuously

* e2e test

* Add a test for create_torrent

* Nothing

* Nothing, just tweaking the numberes

* Update tokio, remove custom tempfile shim
2024-03-05 09:18:22 +00:00
Igor Katson
c8189de3d2
Merge pull request #72 from jabedude/bep52-magnet-support
Add support for BTv2 magnet links
2024-01-08 11:27:27 +00:00
Joshua Abraham
0836b651a7 Add support for BTv2 magnet links 2024-01-07 20:57:10 -06:00
Igor Katson
d5d98aff60
Extract ReadBuf logic into a separate struct 2024-01-02 18:36:07 +00:00
Igor Katson
09252c0397
Remove "read_one" macro 2024-01-02 18:36:07 +00:00
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