From a22388bbd1377f75d3b873c59f6836cd12c2abe5 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 16 May 2023 17:00:59 -0600 Subject: 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. --- ext/http/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/http/lib.rs') 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; -- cgit v1.2.3