Commit graph

43 commits

Author SHA1 Message Date
Naim A e7264b912a fix issue #114 2022-01-29 20:08:54 +02:00
Naim A 4fec8208aa update deps with requires fixes and fixed clippy warnings 2022-01-13 21:30:40 +02:00
Naim A d2e7c6d5a3 update tokio 1.0 + warp 0.3 2021-01-20 16:05:43 +02:00
Naim A 18a686bf2f update to stable tokio 0.3.0 2020-10-15 20:40:22 +03:00
Naim A 0eb122bb6d update to tokio v0.3.0, remove use of deprecated api from bincode 2020-09-18 02:46:46 +03:00
Naim A 03cc1cadc8 webserver: got rid of a warning 2020-08-23 22:55:21 +03:00
Naim A 92ae9e7954 webserver: remove ip check
If the server is bound to a non-loopback interface the API would be rendered useless.
2020-08-23 22:40:58 +03:00
Naim A db28591026 replace utils.rs with official tokio-util 2020-05-19 00:28:17 +03:00
Naim A a6b9534f48 update docs 2020-05-14 01:22:59 +03:00
Naim A 346aa4bbd0 add multithreaded udp send with tokio 2020-05-14 01:22:59 +03:00
Naim A ad369d1d22 add detailed peer listing in webserver 2020-05-14 01:22:59 +03:00
Naim A e1cf56aba4 add async bzip compression to database 2020-05-14 01:22:59 +03:00
Naim A e42fec3ece don't delete flagged torrents, use Instant instead of SystemTime 2020-05-14 01:22:59 +03:00
Naim A 7a7faf405e check remote_addr is loopback 2020-05-14 01:22:59 +03:00
Naim A d6577e555e fixed broken tests 2020-05-14 01:22:59 +03:00
Naim A d030871337 make everything async 2020-05-14 01:22:59 +03:00
Naim A 25a00f6b56 update dependencies, convert to 2018 edition 2020-05-14 01:22:59 +03:00
Naim A d5b8a4a858
write db on termination 2019-01-17 00:53:23 +02:00
Naim A 73416c886f
added a way to trigger graceful termination 2018-12-18 02:44:53 +02:00
Naim A 0ca317784e
using journal file before overwriting previous db 2018-12-11 03:28:41 +02:00
Naim A 111e830410
configurable cleanup interval 2018-12-11 03:03:14 +02:00
Naim A 04a0faa604
Added scrape support + fixed some warnings 2018-12-11 02:46:57 +02:00
Naim A 0f0210f6b8
loading and saving databases 2018-12-09 01:19:04 +02:00
Naim A 4608cdfa00
Multiple changes
1. [WIP] database serialization/deserialization
2. ran `rustfmt` over sources.
3. updated Cargo.lock
2018-12-07 01:58:31 +02:00
Naim A 95b1d5b4b8
Ability to save compressed database. 2018-10-28 08:41:52 +02:00
Naim A 1908056c8b
Implemented deserializer for InfoHash 2018-10-28 01:36:10 +02:00
Naim A 22bbb9d533
Changed InfoHash to a real struct. 2018-10-28 01:59:35 +03:00
Naim A 703dfbb57d
added serializer for database. removed unused code. 2018-10-28 01:12:13 +03:00
Naim A f356201323
Added ability to configure log level. 2018-10-25 22:49:25 +03:00
Naim A 219c1732fe
Added some logging; Added UDP multithreading. 2018-10-24 01:28:38 +03:00
Naim A 04643c60a0
added argparser for config file 2018-10-22 01:25:01 +03:00
Naim A ce555e0da5
code cleanup 2018-10-21 23:45:50 +03:00
Naim A 9a31422091
More values are configurable 2018-10-21 23:39:39 +03:00
Naim A f5fe87631c
adding configuration parsing 2018-10-21 01:57:58 +03:00
Naim A 70ecfdb6ac
removed placeholder for development 2018-10-21 01:08:35 +03:00
Naim A bf6578f085
moved to actix-web for http server 2018-10-21 01:02:12 +03:00
Naim A e5a9500edc
Removed hyper based http server 2018-10-19 12:23:08 +03:00
Naim A c60fd49c48
WIP: replaced Vec<u8> usage with StackVec<u8> for performance 2018-07-11 00:12:33 +03:00
Naim A ec490d47ca
WIP: more detailed web-server, will allow to pass IP since hyper doesn't 2018-07-08 17:03:23 +03:00
Naim A ca77851b49
WIP: major changes;
* using RwLock instead of Mutex.
* Added WebServer for API & http tracker using hyper.
* added iterator trait for StackVec<T>.
* removed benchmarks since they require nightly rust.
2018-06-24 13:20:18 +03:00
Naim A 27111c0c83
Added partial implementation for a stack "vector" 2018-06-15 13:02:36 +03:00
Naim A 53eb629f50
WIP: announce and DB better implementation 2018-06-12 20:23:19 +03:00
Naim A dd04df33f6
WIP: only announce implemented... 2018-06-11 22:46:57 +03:00