mirror of
https://github.com/Gouryella/drip.git
synced 2026-02-26 14:21:17 +00:00
Added support for HTTP response context cancellation, including logic for registering, triggering, and cleaning up cancellation functions. Introduced a responseCancels mapping and corresponding synchronization lock in FrameHandler to track and control the request lifecycle. When the data frame type is closed, actively called cancelResponse to release related resources. Simultaneously, during the response body reading process, identified context cancellation or timeout errors and prematurely terminated the processing flow to avoid invalid operations.