Commit graph

1055 commits

Author SHA1 Message Date
Igor Katson
c601b399f2
Workaround rustfmt bug in session.rs 2024-08-21 12:07:42 +01:00
Igor Katson
06e88c138f
Session speed estimator 2024-08-21 11:57:45 +01:00
Igor Katson
0fdf6ad429
Counting peers on drop 2024-08-21 11:31:36 +01:00
Igor Katson
67afdb0aa5
Add a struct for session stats + bump the counters 2024-08-21 11:22:37 +01:00
Igor Katson
ee2ad7138e
Merge pull request #203 from ikatson/fastresume
[Feature] Fast resume - quick restart without rehashing
2024-08-21 10:56:06 +01:00
Igor Katson
627c0ac28f
Implement fastresume for postgres 2024-08-20 22:57:08 +01:00
Igor Katson
cd4d812aca
Restore Msb0 as Lsb0 is bugged - BEP 003 uses MSB 2024-08-20 22:19:37 +01:00
Igor Katson
ea39ec787a
Enable fastresume in tests 2024-08-20 21:58:59 +01:00
Igor Katson
c4888d5123
e2e test increasing file limit 2024-08-20 21:53:43 +01:00
Igor Katson
65feec3406
Fastresume CLI option 2024-08-20 21:47:08 +01:00
Igor Katson
e11744cd63
Add fastresume session option 2024-08-20 21:31:52 +01:00
Igor Katson
29c46f2579
It fully works! 2024-08-20 21:22:56 +01:00
Igor Katson
2fee0ca8c2
flushing bitfield 2024-08-20 21:09:58 +01:00
Igor Katson
bc9e72df60
Use actual BitV and factory everywhere 2024-08-20 20:42:24 +01:00
Igor Katson
a55dfc6e0e
Simplify initial check code to only return have_pieces 2024-08-20 20:16:11 +01:00
Igor Katson
8135b31a5d
Use in chunk_tracker 2024-08-20 17:15:37 +01:00
Igor Katson
e771162fa7
BitVFactory going on 2024-08-20 16:51:34 +01:00
Igor Katson
d7236f05a9
Add bitv module 2024-08-20 15:07:23 +01:00
Igor Katson
d99ebccf4d
Merge pull request #202 from ikatson/update-e2e-test-delete
Update e2e test to test deletion
2024-08-19 19:37:32 +01:00
Igor Katson
06b5b4c6df
Update e2e test to test deletion 2024-08-19 19:31:51 +01:00
Igor Katson
6127a4aeda
Merge pull request #201 from ikatson/fix-delete-torrent
Fix a bug in torrent deletion
2024-08-19 19:31:26 +01:00
Igor Katson
ab2d73c2b3
Fix a bug in torrent deletion 2024-08-19 19:21:09 +01:00
Igor Katson
3d212543a5
Merge pull request #200 from ikatson/decode-torrent
[Feature] Decode torrent as JSON in the /torrents/resolve_magnet API
2024-08-19 19:11:52 +01:00
Igor Katson
04cfe9fc6b
can now decode torrent as JSON in the HTTP API 2024-08-19 18:46:50 +01:00
Igor Katson
52beec9296
Update sqlx 2024-08-19 17:40:26 +01:00
Igor Katson
06c6bf4487
Preparing for v7.0.0-beta.1 2024-08-19 17:29:22 +01:00
Igor Katson
4e220407ce
Merge pull request #199 from ikatson/fix-unchoke
Fix unchoke broken in previous PR
2024-08-19 16:56:23 +01:00
Igor Katson
e0c459e9f5
Fix unchoke broken in previous PR 2024-08-19 16:51:50 +01:00
Igor Katson
e3ab7e2413
Merge pull request #198 from ikatson/further-e2e-fixes
Further e2e fixes for reliability
2024-08-19 16:42:57 +01:00
Igor Katson
8de27f812a
Proper bitfield handling 2024-08-19 16:29:32 +01:00
Igor Katson
3dcf43f448
Further e2e fixes for reliability 2024-08-19 16:02:11 +01:00
Igor Katson
6ed84ffcb3
Merge pull request #197 from ikatson/fix-e2e-test
Other fixes found by e2e test
2024-08-19 14:32:08 +01:00
Igor Katson
8b1ca49439
fix windows build 2024-08-19 13:58:05 +01:00
Igor Katson
e4aac7930f
make async-backtrace optional 2024-08-19 13:40:01 +01:00
Igor Katson
17353cf8e1
Timeout configurable 2024-08-19 13:19:56 +01:00
Igor Katson
0cb92eb333
Notify for released pieces 2024-08-19 13:17:13 +01:00
Igor Katson
032b34c5d6
upgrade a log message to debug 2024-08-19 13:05:15 +01:00
Igor Katson
02eca15c70
Remove a spurious complicated function ".mark_chunk_request_cancelled" 2024-08-19 12:54:56 +01:00
Igor Katson
7cda2c9807
async_backtrace 2024-08-19 12:35:32 +01:00
Igor Katson
79e206d5a7
more tracing spans 2024-08-19 12:10:12 +01:00
Igor Katson
6e92eec167
global timeout in e2e test 2024-08-19 12:08:46 +01:00
Igor Katson
60f831bc6f
dummy file is Option now instead of additional open 2024-08-19 11:25:45 +01:00
Igor Katson
c1775e45eb
E2E_NUM_SERVERS env var 2024-08-19 11:13:16 +01:00
Igor Katson
a9df6332cf
Merge pull request #196 from ikatson/fix-e2e-test
Fix a bug in merge_two_streams
2024-08-18 17:44:28 +01:00
Igor Katson
d028e2e3c2
fix buggy "merge_two_streams" 2024-08-18 17:37:03 +01:00
Igor Katson
675aecf44b
More anyhow.context() 2024-08-18 17:20:59 +01:00
Igor Katson
2ee8366db0
Merge pull request #195 from ikatson/root-span
Fix e2e test to break less
2024-08-18 16:43:14 +01:00
Igor Katson
76e5044d33
fix test ports 2024-08-18 16:37:59 +01:00
Igor Katson
18624d5bd8
More spans 2024-08-18 16:20:26 +01:00
Igor Katson
3f1ad390be
Add session parent spans possibility 2024-08-18 15:01:12 +01:00