0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

fixup! Add hibernate option to cowboy_http and cowboy_http2

This commit is contained in:
Loïc Hoguin 2025-02-07 17:28:31 +01:00
parent ab8aeb424e
commit 9beb498858
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 4 additions and 0 deletions

View file

@ -230,6 +230,8 @@ before_loop(State=#state{opts=#{hibernate := true}}) ->
before_loop(State) ->
loop(State).
-spec loop(#state{}) -> ok.
loop(State=#state{parent=Parent, socket=Socket, transport=Transport, opts=Opts,
buffer=Buffer, timer=TimerRef, children=Children, in_streamid=InStreamID,
last_streamid=LastStreamID}) ->

View file

@ -274,6 +274,8 @@ before_loop(State=#state{opts=#{hibernate := true}}, Buffer) ->
before_loop(State, Buffer) ->
loop(State, Buffer).
-spec loop(#state{}, binary()) -> ok.
loop(State=#state{parent=Parent, socket=Socket, transport=Transport,
opts=Opts, timer=TimerRef, children=Children}, Buffer) ->
Messages = Transport:messages(),