Skip to content

Commit

Permalink
Set fullsweep_after to 0 on data_receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie authored and tsloughter committed Nov 18, 2023
1 parent 5608192 commit 5c5ebe1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/h2_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down

0 comments on commit 5c5ebe1

Please sign in to comment.