Commit graph

28 commits

Author SHA1 Message Date
Joakim Frostegård
c8b94adab5 aquatic_http: remove Connection.shutdown fn 2020-08-02 19:26:12 +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
e7de66603e aquatic_http: add upper limit on request read buffer 2020-08-02 02:45:56 +02:00
Joakim Frostegård
f1f708465a remove aquatic_common_tcp crate, move contents into aquatic_http
It doesn't make a lot of sense to make a separate crate for
the few things here. I don't really want tight coupling between
the crates anyway, since it impedes making changes in them
and makes understanding them more difficult.
2020-07-21 23:01:34 +02:00
Joakim Frostegård
95e25710dc aquatic_http: move request parsing into protocol crate 2020-07-20 20:13:56 +02:00
Joakim Frostegård
4ac2012a2a aquatic_http: move protocol module to new crate aquatic_http_protocol 2020-07-19 21:59:31 +02:00
Joakim Frostegård
f94c52da77 aquatic_http: send_response: use itoa and Vec::with_capacity
This leads to fewer allocations and possibly better performance.
2020-07-18 03:05:40 +02:00
Joakim Frostegård
da4ba14b47 aquatic_http: EstablishedConnection.send_response: fix small bug 2020-07-08 12:28:46 +02:00
Joakim Frostegård
c53c3928ab aquatic_http: fix clippy error, or at least log possible error 2020-07-05 20:33:24 +02:00
Joakim Frostegård
8ebfb1d0ce aquatic_http network: avoid infinite loop case; minor other changes 2020-07-04 15:04:31 +02:00
Joakim Frostegård
d48573a28e aquatic_http: network: update inline hints, format code 2020-07-04 13:47:47 +02:00
Joakim Frostegård
c28e764929 aquatic_http: add Connection methods, enabling making 'inner' private 2020-07-04 13:35:52 +02:00
Joakim Frostegård
1ea1f0b749 aquatic_http: in Connection.inner, replace Either with new enum 2020-07-04 13:28:55 +02:00
Joakim Frostegård
73b1646c71 aquatic_http: refactor TlsHandshakeMachine, adding error type 2020-07-04 13:10:57 +02:00
Joakim Frostegård
829701f4da aquatic_http: debug-log request GET path, use debug mode for bytes read 2020-07-04 12:38:30 +02:00
Joakim Frostegård
7419c51434 aquatic_http protocol: refactor into more submodules, other fixes 2020-07-03 17:25:31 +02:00
Joakim Frostegård
52cc7d8acb aquatic_http: write custom deserialize logic for Request 2020-07-03 17:10:30 +02:00
Joakim Frostegård
136a79ce8d aquatic_http: use flexible-sized buffer for request reading 2020-07-03 11:13:55 +02:00
Joakim Frostegård
7bc47ab93f aquatic_http: microoptimize EstablishedConnection 2020-07-02 22:56:24 +02:00
Joakim Frostegård
fb6caf7343 aquatic_http: prococol module: parse Request from path 2020-07-02 22:53:03 +02:00
Joakim Frostegård
d5b82bcf70 aquatic_http: simplify tls handshake code further 2020-07-02 22:43:54 +02:00
Joakim Frostegård
ccfa03f6cc aquatic_http: simplify network logic 2020-07-02 22:14:52 +02:00
Joakim Frostegård
f73910934b aquatic_http: keep connection after sending response; other fixes 2020-07-02 21:14:56 +02:00
Joakim Frostegård
2e53a2adc1 add aquatic_common_tcp crate, move common functionality there 2020-07-02 16:34:36 +02:00
Joakim Frostegård
6b1f11635b aquatic_http: bencoded response with content-length 2020-07-02 13:47:37 +02:00
Joakim Frostegård
a487347a0d aquatic_http: continue implementation work 2020-07-02 13:21:39 +02:00
Joakim Frostegård
76079cf66e WIP: more work on aquatic_http 2020-07-02 00:39:50 +02:00
Joakim Frostegård
404e528616 WIP: start work on http tracker 2020-07-01 18:56:19 +02:00