mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(ext/http): Ensure cancelled requests don't crash Deno.serve (#19154)
Fixes for various `Attemped to access invalid request` bugs (#19058, #15427, #17213). We did not wait for both a drop event and a completion event before removing items from the slab table. This ensures that we do so. In addition, the slab methods are refactored out into `slab.rs` for maintainability.
This commit is contained in:
parent
9ba2c4c42f
commit
a22388bbd1
7 changed files with 416 additions and 313 deletions
|
@ -81,6 +81,7 @@ mod reader_stream;
|
|||
mod request_body;
|
||||
mod request_properties;
|
||||
mod response_body;
|
||||
mod slab;
|
||||
mod websocket_upgrade;
|
||||
|
||||
pub use request_properties::DefaultHttpPropertyExtractor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue