chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a621568
)
server: apply length limit
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 15 Aug 2021 17:17:51 +0000
(18:17 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 15 Aug 2021 17:17:51 +0000
(18:17 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/server.rs
patch
|
blob
|
history
diff --git
a/src/bin/server.rs
b/src/bin/server.rs
index e7daf489c53f929bb0d9f3c60b02d7410204136a..fdee557433101a8fd33a634a3867d8c019c59dd8 100644
(file)
--- a/
src/bin/server.rs
+++ b/
src/bin/server.rs
@@
-213,7
+213,7
@@
async fn handle(
}
#[allow(unused_variables)] // xxx
-async fn run_client(
_
ic: Arc<InstanceConfig>,
+async fn run_client(ic: Arc<InstanceConfig>,
mut web: mpsc::Receiver<WebRequest>)
-> Result<Void, AE>
{
@@
-263,7
+263,7
@@
async fn run_client(_ic: Arc<InstanceConfig>,
match async {
let whole_request = read_limited_bytes(
-
usize::MAX /* xxx */
,
+
ic.max_batch_up.sat()
,
initial,
length_hint,
&mut body