Commit Graph
171 Commits
Author SHA1 Message Date
orignal 4b5bea5ee4 check if piece length is within 16K-64M. Return error through RPC 2026-09-17 18:25:04 -04:00
orignal 0e0733df97 check piece's next hash string length 2026-09-17 16:55:20 -04:00
orignal 17e61f81bf reject request if requested block is beyond piece size 2026-09-17 16:03:50 -04:00
orignal 52b31b55ad close connection if unexpected message length received 2026-09-17 14:46:05 -04:00
orignal 80a3f99a61 count being sent pieces for incoming requests queue 2026-09-15 17:55:15 -04:00
orignal ca984618af delete orphaned connection 2026-09-15 14:24:09 -04:00
orignal 79a4d7496b update piece's buffer after it gets loaded 2026-09-15 08:52:27 -04:00
orignal bc4dc2b272 send reject request if loaded block cann't be sent 2026-09-14 17:28:00 -04:00
orignal 952f5aad9e open seeded file in read-only mode 2026-09-14 10:11:42 -04:00
orignal 5925c58b6a fixed build with older version of clang 2026-09-14 07:57:03 -04:00
orignal 3c45d154b9 don't close file after each save/load operation 2026-09-13 21:34:02 -04:00
orignal 2ff4eb7c57 calculate stats in real time 2026-09-13 19:09:36 -04:00
orignal b8a1c56d25 use TorrentFile struct for files. Common logic for single and multiple files 2026-09-13 18:38:45 -04:00
orignal 4b42c6b76a recoonect peers from different torrents after random intervals 2026-09-13 15:19:28 -04:00
orignal d72ae7a3dc remove peer from torrent on termination. Always run reconnect timer 2026-09-13 11:33:03 -04:00
orignal aee00c1984 don't try to peer if pending connection. Request trackers right away when torrent was added 2026-09-13 10:01:52 -04:00
orignal 1d96c2ac69 tribool local bitfield state. Delete .resume file after receiving last piece 2026-09-12 21:59:04 -04:00
orignal 13925712f8 check if stream is still alive in callback 2026-09-12 16:44:48 -04:00
orignal 3630a57054 take non connected peers from torrent 2026-09-12 12:33:14 -04:00
orignal 95f251fdcb only one peer connection with destination per torrent 2026-09-12 11:03:33 -04:00
orignal 8edd903a79 clean up pieces of seeding torrent. Update torrent status in random intervals 2026-09-12 08:17:17 -04:00
orignal c740ea579c fixed possible memory leak 2026-09-11 15:13:39 -04:00
orignal 3bf919b780 close connections after receiving info if they didn't have it by handshake 2026-09-10 22:10:18 -04:00
orignal e0fcfb3507 notify existing peers about new incoming peer 2026-09-10 15:30:44 -04:00
orignal 6929699325 send PEX added message to incoming connection 2026-09-10 13:08:24 -04:00
orignal 0d655befa5 respond with reject request if piece load failed 2026-09-09 18:09:51 -04:00
orignal e50950c6c0 connect to new peers received through PEX 2026-09-09 16:42:13 -04:00
orignal e3be45ec50 receive I2P_PEX messages 2026-09-09 10:45:52 -04:00
orignal 7d93ac0f02 maintain connections list per torrent 2026-09-08 20:53:22 -04:00
orignal 5e51001c44 reverse extended msgid 2026-09-08 10:03:08 -04:00
orignal 123f5c75ce check incoming requests queue size and reject or choke if exceeds 2026-09-07 18:41:59 -04:00
orignal c89880c517 handle and send reqq param from BEP10 2026-09-07 17:32:29 -04:00
orignal dfab300cf1 fixed build error 2026-09-07 12:09:08 -04:00
orignal 4618a2d9b3 replace / to _ in file path from .torrent file 2026-09-07 11:43:26 -04:00
orignal 2ee0e5faba randonly select piece to downloand among pieces with same number of peers 2026-09-06 21:13:48 -04:00
orignal 4c3fad35bc more RPC stats about torrent 2026-09-06 20:49:15 -04:00
orignal f70e44d659 terminate connection right away once metainfo received. Cleanup pieces before parsing 2026-09-06 11:05:23 -04:00
orignal 19e0586b4a check if magnet is not ready for status update and tracket info 2026-09-06 08:35:10 -04:00
orignal 0bbfc816a8 handle allowed fast msg 2026-09-05 21:18:56 -04:00
orignal a63b7b1030 handle suggest piece msg 2026-09-05 20:31:10 -04:00
orignal 97ce8d3335 handle reject request msg 2026-09-05 17:11:55 -04:00
orignal daccef90c1 BEP6 2026-09-05 15:07:16 -04:00
orignal 36a5821432 add announce to .torrent file if available 2026-09-05 09:31:16 -04:00
orignal 3de5ae0700 close connection if peer doesn't support BEP9 and BEP10 if magnet doesn't have info yet 2026-09-04 22:24:27 -04:00
orignal b5989bec8a fixed typo 2026-09-04 20:50:52 -04:00
orignal aad34ec242 ignore total_size from BEP9 metadata. Check size of magnet hash 2026-09-04 20:42:45 -04:00
orignal d203db13a7 update torrent info and save .torent file from BEP9 metadata 2026-09-04 17:36:28 -04:00
orignal 0b0e88a0d0 correct file completion size calculation 2026-09-03 15:08:07 -04:00
orignal 78d1794b5b NO_TORRENTS compilation param added 2026-09-02 11:10:10 -04:00
orignal 920226d67a verify received torrent info with infoHash 2026-09-01 20:38:41 -04:00