Joakim Frostegård
|
d621fb1f85
|
http protocol: implement Error for RequestParseError
|
2022-08-01 14:42:22 +02:00 |
|
Joakim Frostegård
|
1c4655e0d7
|
http protocol: improve doc comment for Request::from_http_get_path
|
2022-08-01 14:38:07 +02:00 |
|
Joakim Frostegård
|
ffc5dc5227
|
http protocol: explicitly check for /scrape path
|
2022-08-01 14:35:05 +02:00 |
|
Joakim Frostegård
|
1b5fbe8775
|
http protocol: return NeedMoreData until headers are fully parsed
This prevents an issue in aquatic_http where it could
theoretically start sending back data before initial
request was fully received.
|
2022-08-01 14:33:18 +02:00 |
|
Joakim Frostegård
|
ee016ea0b6
|
http protocol: AnnounceRequest: always ask for compact responses
|
2022-04-11 01:08:40 +02:00 |
|
Joakim Frostegård
|
c229872134
|
Use idiomatic feature names & namespace support from Rust 1.60
|
2022-04-10 01:25:03 +02:00 |
|
Joakim Frostegård
|
c990521b92
|
Run cargo fmt
|
2022-04-04 12:49:35 +02:00 |
|
Joakim Frostegård
|
9f8f80a17b
|
http protocol: remove AnnounceRequest::compact, fail parsing if set to 0
|
2022-04-04 12:16:13 +02:00 |
|
Joakim Frostegård
|
61569d0f31
|
http_protocol: remove charset=utf-8 from response content type
We send bencode bytes. They should possibly not be sent as text at all
|
2022-04-04 12:06:27 +02:00 |
|
Joakim Frostegård
|
5da1c304a3
|
http_protocol: fix ScrapeRequest::write issue
|
2022-04-04 11:57:40 +02:00 |
|
Joakim Frostegård
|
db6f6e027c
|
http_protocol: fix AnnounceResponse::warning_message serialization
|
2022-04-04 11:50:42 +02:00 |
|
Joakim Frostegård
|
68fda1be45
|
http_protocol: fix failing test_announce_request_from_bytes
|
2022-04-04 11:00:25 +02:00 |
|
Joakim Frostegård
|
6eb1375e4e
|
http_protocol: skip serializing AnnounceResponse.warning_message if None
|
2022-04-04 10:28:48 +02:00 |
|
Joakim Frostegård
|
92b62e73ca
|
http_protocol: in AnnounceRequest::write, send uploaded & downloaded
|
2022-04-04 10:20:43 +02:00 |
|
Joakim Frostegård
|
98e7e5cc13
|
http_protocol: implement axum IntoResponse, use in http_private
|
2022-04-03 20:20:51 +02:00 |
|
Joakim Frostegård
|
b2a3c034b0
|
http_protocol: allow announce/scrape url suffix; use in load test
|
2022-04-03 19:17:57 +02:00 |
|
Joakim Frostegård
|
70d79b1871
|
http: add AnnounceResponse.warning_message; set in http_private
|
2022-04-03 01:07:38 +02:00 |
|
Joakim Frostegård
|
7d3ff2e9e6
|
http_protocol: expose write on response subtypes
|
2022-04-02 16:05:54 +02:00 |
|
Joakim Frostegård
|
d4a89ee808
|
http_protocol: derive Copy for AnnounceEvent
|
2022-04-02 15:43:28 +02:00 |
|
Joakim Frostegård
|
b54fb7f1db
|
http_protocol: cargo fmt
|
2022-04-02 13:56:13 +02:00 |
|
Joakim Frostegård
|
a93789128c
|
http_protocol: add AnnounceRequest uploaded and downloaded fields
|
2022-04-02 13:43:18 +02:00 |
|
Joakim Frostegård
|
87223f7952
|
http_protocol: add AnnounceEvent::as_str, run cargo fmt
|
2022-04-02 13:31:51 +02:00 |
|
Joakim Frostegård
|
b9c029b5ed
|
http_protocol: split request parsing by request type
|
2022-04-02 12:39:31 +02:00 |
|
Joakim Frostegård
|
83a4e318a4
|
aquatic_http_protocol: cargo fmt
|
2021-11-01 17:18:27 +01:00 |
|
Joakim Frostegård
|
df9aaccb46
|
aquatic_http_protocol: fix serde_quickcheck_identity_test
Since empty info hash Vec is no longer allowed, don't allow
it in test data and expect parsing to succeed.
|
2021-10-30 17:06:28 +02:00 |
|
Joakim Frostegård
|
c02f8f228e
|
aquatic_http_protocol: fail scrape parse with no info hashes
|
2021-10-27 12:14:14 +02:00 |
|
Joakim Frostegård
|
2e68155bf4
|
aquatic_http: use Cow<_> for FailureResponse.failure_reason
|
2021-10-16 00:19:58 +02:00 |
|
Joakim Frostegård
|
10fe014c03
|
aquatic_http access list: use in torrent cleaning, do periodic updates
|
2021-10-15 23:03:24 +02:00 |
|
Joakim Frostegård
|
7fec41099b
|
aquatic_http: check access list in announce request handler
|
2021-10-15 22:49:07 +02:00 |
|
Joakim Frostegård
|
d0e716f80b
|
Run rustfmt, clean up aquatic_http_protocol/Cargo.toml
|
2021-08-15 22:26:11 +02:00 |
|
Joakim Frostegård
|
f9626ade57
|
Upgrade quickcheck to 1.0, adjust code, optimizing a slow test
|
2021-02-10 18:36:23 +01:00 |
|
Joakim Frostegård
|
74e1ecf384
|
aquatic_http_protocol: remove unused utility function "urldecode"
|
2020-08-13 00:51:56 +02:00 |
|
Joakim Frostegård
|
6f955235ea
|
aquatic http: log at debug level for unrecognized keys in request parse
"downloaded" and "uploaded" occur all the time since they are
part of the specification
|
2020-08-12 04:38:47 +02:00 |
|
Joakim Frostegård
|
bc5cd90371
|
aquatic http: use serde_bencode for deserialization
bendy seems not to manage lack of trailing newline
|
2020-08-12 04:26:09 +02:00 |
|
Joakim Frostegård
|
7a96313173
|
aquatic_http_protocol: send host header for scrape requests too
|
2020-08-12 04:23:26 +02:00 |
|
Joakim Frostegård
|
e6a74c5bfe
|
aquatic http load test: send Host header, downloaded&uploaded keys
|
2020-08-12 04:08:43 +02:00 |
|
Joakim Frostegård
|
74a538963f
|
aquatic_http_protocol: urlencode/urldecode Request.key
About 11% performance regression for Request::from_bytes
|
2020-08-10 04:37:01 +02:00 |
|
Joakim Frostegård
|
1b2b4f0eb5
|
aquatic_http_protocol: add test for Request serde, fix Request.write bug
|
2020-08-09 01:19:47 +02:00 |
|
Joakim Frostegård
|
e88ecec9c7
|
aquatic http protocol: fix failure response serialization test failure
|
2020-08-02 22:11:55 +02:00 |
|
Joakim Frostegård
|
f9d85117b1
|
aquatic_http_protocol: optimize response peer deserialization
Hopefully, now response peer vec only needs to be allocated once
|
2020-08-02 11:34:09 +02:00 |
|
Joakim Frostegård
|
a18596544f
|
aquatic http protocol: allow non-existing peers in Response
Really, this is to allow missing peers6
|
2020-08-02 10:03:42 +02:00 |
|
Joakim Frostegård
|
fe887e1de5
|
aquatic http protocol: add deserialize impl for responses
|
2020-08-02 09:27:44 +02:00 |
|
Joakim Frostegård
|
cb3ec8cbf1
|
WIP: get http load test into better (but bad) state
Is now able to maintain correspondence with aquatic_http
and opentracker
|
2020-08-02 06:38:36 +02:00 |
|
Joakim Frostegård
|
9707898a32
|
aquatic_http: remove underscore from "failure_reason"
|
2020-08-02 02:46:52 +02:00 |
|
Joakim Frostegård
|
561cc3db55
|
fix more clippy warnings
|
2020-08-02 00:36:56 +02:00 |
|
Joakim Frostegård
|
8fc09cb130
|
http: fix some clippy errors, including possible network bug
|
2020-08-01 23:59:17 +02:00 |
|
Joakim Frostegård
|
7d4b1ab610
|
aquatic http protocol: AnnounceRequest.write: write actual event
|
2020-08-01 23:05:07 +02:00 |
|
Joakim Frostegård
|
997482d46d
|
aquatic_http: urldecode_20_bytes: remove duplicate check
request-from-bytes performance seems to have regressed,
I don't know why (+8%)
|
2020-07-24 23:06:46 +02:00 |
|
Joakim Frostegård
|
668b480e0f
|
aquatic_http_protocol: optimize urlencode_20_bytes
|
2020-07-24 22:35:34 +02:00 |
|
Joakim Frostegård
|
cc46c4b72c
|
aquatic_http: write to buf ref in request serialization
|
2020-07-24 22:27:06 +02:00 |
|