Files
servo/components/script
Narfinger caae16a8ba script: Fix cycle in TransmitBodyConnectHandler (#42183)
As described in the stop_reading method:
into_net_request_body constructs an ipc-channel sender and receiver
pair. The sender will be given to the TransmitBodyHandler which uses it
in various script callbacks.
On BodyChunkRequest::Done, previously we did not destroy the sender,
hence, did not destroy the receiver for this and keep the structure
alive in memory.
For safety we now destroy the sender in the BodyChunkRequest::Done (we
also take the IpcSenders and IpcSharedMemory when applicable).


Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>

Testing: Using the script from
https://github.com/servo/servo/issues/41202 we get less file descriptor
usage.
Fixes: This partially fixes https://github.com/servo/servo/issues/41202
but not completely.

---------

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
2026-01-27 17:11:49 +00:00
..
2025-10-02 07:51:19 +00:00