From 5c5ebe175c3aee18cd5b0be22c17c0bd669755b0 Mon Sep 17 00:00:00 2001 From: Macpie Date: Fri, 28 Jul 2023 15:16:31 -0700 Subject: [PATCH] Set fullsweep_after to 0 on data_receiver --- src/h2_connection.erl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/h2_connection.erl b/src/h2_connection.erl index 121ee5c7..475decf6 100644 --- a/src/h2_connection.erl +++ b/src/h2_connection.erl @@ -1184,10 +1184,13 @@ spawn_data_receiver(Socket, Streams, Flow) -> h2_stream_set:set_socket_send_window_size(?DEFAULT_INITIAL_WINDOW_SIZE, Streams), Type = h2_stream_set:stream_set_type(Streams), ConnDetails = get('__h2_connection_details'), - spawn_link(fun() -> - put('__h2_connection_details', ConnDetails), - receive_data(Socket, Streams, Connection, Flow, Type, true, hpack:new_context()) - end). + spawn_opt( + fun() -> + put('__h2_connection_details', ConnDetails), + receive_data(Socket, Streams, Connection, Flow, Type, true, hpack:new_context()) + end, + [link, {fullsweep_after, 0}] + ). receive_data(Socket, Streams, Connection, Flow, Type, First, Decoder) ->