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

More progress on close

Need to fix the crashes and we should be in a pretty good state
for PoC and whatnot.
This commit is contained in:
Loïc Hoguin 2025-06-06 13:43:45 +02:00
parent 6c58e7fdce
commit ee6ef37643
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
5 changed files with 152 additions and 19 deletions

View file

@ -237,8 +237,9 @@ handle({quic, dgram_state_changed, _Conn, _Props}) ->
%% QUIC_CONNECTION_EVENT_SHUTDOWN_INITIATED_BY_TRANSPORT
handle({quic, transport_shutdown, _Conn, _Flags}) ->
ok;
handle({quic, peer_send_shutdown, _StreamRef, undefined}) ->
ok;
handle({quic, peer_send_shutdown, StreamRef, undefined}) ->
{ok, StreamID} = quicer:get_stream_id(StreamRef),
{peer_send_shutdown, StreamID};
handle({quic, send_shutdown_complete, _StreamRef, _IsGraceful}) ->
ok;
handle({quic, shutdown, _Conn, success}) ->