mirror of
https://github.com/servo/servo
synced 2026-05-13 02:17:06 +02:00
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>