Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/runtime/server/RequestContext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2379,7 +2379,7 @@ where
if let Some(resp) = self.resp.take() {
if self.flags.request_body_paused() {
self.flags.set_request_body_paused(false);
resp.resume_();
resp.resume();
}
if self.flags.is_waiting_for_request_body() {
self.flags.set_is_waiting_for_request_body(false);
Expand Down Expand Up @@ -4123,7 +4123,7 @@ where
return;
}
if let Some(resp) = self.resp {
resp.resume_();
resp.resume();
}
}

Expand Down Expand Up @@ -4179,7 +4179,7 @@ where
}
}
if let Some(resp) = (*this).resp {
resp.resume_();
resp.resume();
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/runtime/webcore/streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ impl<const SSL: bool, const HTTP3: bool> HTTPServerWritable<SSL, HTTP3> {
if let Some(res) = self.any_res() {
res.clear_on_writable();
// Release any request-body pause while `res` is live (see `end_already_responded_stream`).
res.resume_();
res.resume();
}
// `send_readable` drained the parked `try_end`, so uWS has
// `markDone()`d the response and dropped its `onAborted`.
Expand Down Expand Up @@ -1782,7 +1782,7 @@ impl<const SSL: bool, const HTTP3: bool> HTTPServerWritable<SSL, HTTP3> {

if let Some(res) = self.any_res() {
// Release any request-body pause while `res` is live (see `end_already_responded_stream`).
res.resume_();
res.resume();
}
// Both branches above fully ended the response through uWS, which
// `markDone()`s it and drops its `onAborted`.
Expand Down Expand Up @@ -1870,7 +1870,7 @@ impl<const SSL: bool, const HTTP3: bool> HTTPServerWritable<SSL, HTTP3> {
if let Some(res) = self.any_res() {
res.clear_on_writable();
// Release any request-body pause while `res` is live (see `end_already_responded_stream`).
res.resume_();
res.resume();
}
// `send_readable` drained the parked `try_end`/`end`, so uWS has
// `markDone()`d the response and dropped its `onAborted`.
Expand Down
Loading