Skip to content

Commit

Permalink
Add support to :max_heap_size in websocket handler
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idpwn committed Oct 24, 2023
1 parent ecf81e4 commit 4ba7484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bandit/websocket/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule Bandit.WebSocket.Handler do
{websock, websock_opts, connection_opts} = state.upgrade_opts

connection_opts
|> Keyword.take([:fullsweep_after])
|> Keyword.take([:fullsweep_after, :max_heap_size])
|> Enum.each(fn {key, value} -> :erlang.process_flag(key, value) end)

connection_opts = Keyword.merge(state.opts.websocket, connection_opts)
Expand Down

0 comments on commit 4ba7484

Please sign in to comment.