Commit graph

191 commits

Author SHA1 Message Date
Igor Katson
66e62d61e4
Playing with axum HTTP error handling 2022-12-08 09:28:01 +00:00
Igor Katson
818e300935
DHT: use rwlock, not mutex 2022-12-07 22:01:29 +00:00
Igor Katson
813ef92123
Change the info hash for e2e dht test 2022-12-04 22:41:07 +00:00
Igor Katson
9e8f235cb4
Add read/write timeouts and avoid stuck peers 2022-12-04 14:51:48 +00:00
Igor Katson
ae847ce99c
Upgrade deps 2022-12-04 13:12:23 +00:00
Igor Katson
15ae48e5af
Changed warp to axum 2022-12-04 12:53:55 +00:00
Igor Katson
4cf538162e
Added brew tap aarch64-unknown-linux-gnu 2022-05-23 21:40:05 +01:00
Igor Katson
28992ae5e4
Added one more artifact 2022-05-23 21:35:20 +01:00
Igor Katson
bc11f43452
Revert "Integrate with tokio console"
This reverts commit e10da1c7dd.
2022-05-23 21:33:25 +01:00
Igor Katson
9c79e3a99e
Added linux aarch64 2022-05-23 21:33:12 +01:00
Igor Katson
e10da1c7dd
Integrate with tokio console 2021-12-18 13:39:42 +00:00
Igor Katson
99c5830b97
Changed the loglevel of annoying log message "we are choked" to debug 2021-11-13 21:22:12 +00:00
Igor Katson
cc8011cf9a
Fix a bug in lengths computation 2021-10-28 11:00:03 +01:00
Igor Katson
37af0a4afb
Propagate sub-folder argument to command line 2021-10-26 10:21:02 +01:00
Igor Katson
4170bf3574
cargo update 2021-10-26 10:05:35 +01:00
Igor Katson
804303c526
Merge pull request #9 from pcmid/pcmid/update/target_dir
Update: add sub_folder in AddTorrentOptions
2021-10-25 17:18:02 +01:00
Igor Katson
81cf94b55d
Merge pull request #8 from pcmid/pcmid/fix/wrong_result_for_mbps
Fix: multiply the number of bytes by 8
2021-10-25 17:14:31 +01:00
pcmid
681e93a066
Update: add sub_folder in AddTorrentOptions 2021-10-25 22:00:47 +08:00
pcmid
18713515b9
Update: change Mbps to MiB/s 2021-10-25 18:11:46 +08:00
Igor Katson
921fc812d3
Update README.md 2021-10-25 10:46:10 +01:00
Igor Katson
ff895671cf
Update README.md 2021-10-25 10:44:13 +01:00
pcmid
8b4027e3d6
Format: cargo fmt 2021-10-25 16:46:30 +08:00
pcmid
188055c812
Fix: multiply the number of bytes by 8 2021-10-25 16:39:14 +08:00
Igor Katson
967a06a196
Enhance the HTTP API with more detail. 2021-10-23 10:06:28 +01:00
Igor Katson
0d41b1e689
Merge pull request #7 from ikatson/revamp-cli
Completely change the CLI so that we have a server and a client.
2021-10-22 21:01:48 +01:00
Igor Katson
a8efcfdd26 Completely change the CLI so that we have a server and a client. 2021-10-22 21:01:23 +01:00
Igor Katson
b834bb20b3 Add an option to override worker threads 2021-10-20 20:17:42 +01:00
Igor Katson
f0d14ae92b Create http api before adding the first torrent 2021-10-20 16:11:59 +01:00
Igor Katson
6aa59ff83c
Create test.yml 2021-10-19 10:19:23 +01:00
Igor Katson
a6ebe58798 Rename "release" workflow 2021-10-19 10:17:09 +01:00
Igor Katson
e925ebdd9c Add github actions to compile a release for all platforms. 2021-10-18 22:48:45 +01:00
Igor Katson
b2fb4729c7 Fix or disable all failing tests. Fix all cargo clippy warnings 2021-10-18 16:38:43 +01:00
Igor Katson
3a64254971 Fix a couple bugs.
1. Bug one - last_piece_id when only_files is present.
2. Bug two - do not ensure_file_length for files we don't need.
2021-10-18 16:16:42 +01:00
Igor Katson
f739c99dc0 Update readme 2021-10-18 13:11:45 +01:00
Igor Katson
d14d29b688 Update to cross-compile with openssl on linux 2021-10-18 12:59:51 +01:00
Igor Katson
0cefaf6b10 Update README 2021-10-17 18:27:07 +01:00
Igor Katson
27145c758c Add scripts to build for x86_64 linux too 2021-10-17 18:17:50 +01:00
Igor Katson
60b7d4a531 Add a command to Makefile to cross-compile on osx (release-all) 2021-10-17 13:50:46 +01:00
Igor Katson
287b21f63b Update version to 1.1.0 2021-10-17 13:24:52 +01:00
Igor Katson
f02dcd783f Cargo update 2021-10-17 13:20:52 +01:00
Igor Katson
ebfc20c291 Changed default sha1 to crypto_hash.
Hopefully it'll be easier to build now. The downside is that it allocates
a small vec on each finish, but it's much faster than rust-sha1 anyway,
at least on ARM (where I'm running rqbit myself).
2021-10-17 12:03:21 +01:00
Igor Katson
cbd47c7ba6
Merge pull request #3 from ikatson/multi-torrent
Support for downloading / managing multiple torrents at once.
2021-10-16 14:27:56 +01:00
Igor Katson
5de63af783 Prioritize last piece. Dont ask me why :) 2021-10-16 13:18:25 +01:00
Igor Katson
6bd518676d Truncate files at the start to required length 2021-10-16 12:51:17 +01:00
Igor Katson
a1c9fda32f Speed computation now better fits torrent with large pieces 2021-10-16 00:14:29 +01:00
Igor Katson
d51acba9be Fix a bug in DHT that caused panics sometimes 2021-10-16 00:14:29 +01:00
Igor Katson
3b8c4e053f Speed computation now better fits torrent with large pieces 2021-10-16 00:13:58 +01:00
Igor Katson
d0757d41c5 Print stats for each managed torrent now 2021-10-10 11:52:21 +01:00
Igor Katson
218aa4d9ee Safety note 2021-10-10 11:43:44 +01:00
Igor Katson
9b73a8ff2f Add "overwrite=true" option to torrent add API 2021-10-10 11:39:25 +01:00