diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-05-16 17:00:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 17:00:59 -0600 |
commit | a22388bbd1377f75d3b873c59f6836cd12c2abe5 (patch) | |
tree | 04b9879ab7172884b3417fdf1a3d170564c54726 /ext/http/lib.rs | |
parent | 9ba2c4c42fcbadea1f19c67c88b5cbc4c97804f3 (diff) |
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.
Diffstat (limited to 'ext/http/lib.rs')
-rw-r--r-- | ext/http/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/http/lib.rs b/ext/http/lib.rs index 1ed1e60b7..2660f4653 100644 --- a/ext/http/lib.rs +++ b/ext/http/lib.rs @@ -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; |