diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_http3.erl | 3 | ||||
-rw-r--r-- | src/cowboy_webtransport.erl | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/cowboy_http3.erl b/src/cowboy_http3.erl index 58b571b..9aa6be5 100644 --- a/src/cowboy_http3.erl +++ b/src/cowboy_http3.erl @@ -973,7 +973,6 @@ wt_commands(State0=#state{conn=Conn}, Session=#stream{id=SessionID}, [Cmd|Tail]) Capsule = cow_capsule:wt_close_session(AppCode, AppMsg), case cowboy_quicer:send(Conn, SessionID, Capsule, fin) of ok -> - %% @todo The endpoint MAY send a STOP_SENDING to indicate it is no longer reading from the CONNECT stream. State = webtransport_terminate_session(State0, Session), %% @todo Because the handler is in a separate process %% we must wait for it to stop and eventually @@ -994,7 +993,7 @@ webtransport_terminate_session(State=#state{conn=Conn, http3_machine=HTTP3Machin (StreamID, #stream{status={webtransport_stream, StreamSessionID}}) when StreamSessionID =:= SessionID -> cowboy_quicer:shutdown_stream(Conn, StreamID, - both, cow_http3:error_to_code(webtransport_session_gone)), + both, cow_http3:error_to_code(wt_session_gone)), false; (_, _) -> true diff --git a/src/cowboy_webtransport.erl b/src/cowboy_webtransport.erl index fa1837c..8c8ca39 100644 --- a/src/cowboy_webtransport.erl +++ b/src/cowboy_webtransport.erl @@ -20,7 +20,7 @@ %% HTTP/3: %% - SETTINGS_H3_DATAGRAM = 1 %% - SETTINGS_ENABLE_CONNECT_PROTOCOL = 1 -%% - SETTINGS_WEBTRANSPORT_MAX_SESSIONS >= 1 +%% - SETTINGS_WT_MAX_SESSIONS >= 1 %% Cowboy supports versions 07 through 13 of the WebTransport drafts. %% Cowboy also has some compatibility with version 02. @@ -239,10 +239,10 @@ commands([Command={send, _, _}|Tail], State, Res, Acc) -> %% {send, StreamID, IsFin, Data}. commands([Command={send, _, _, _}|Tail], State, Res, Acc) -> commands(Tail, State, Res, [Command|Acc]); -%% initiate_close - DRAIN_WEBTRANSPORT_SESSION +%% initiate_close - DRAIN_WT_SESSION commands([Command=initiate_close|Tail], State, Res, Acc) -> commands(Tail, State, Res, [Command|Acc]); -%% close | {close, Code} | {close, Code, Msg} - CLOSE_WEBTRANSPORT_SESSION +%% close | {close, Code} | {close, Code, Msg} - CLOSE_WT_SESSION %% @todo At this point the handler must not issue stream or send commands. commands([Command=close|Tail], State, _, Acc) -> commands(Tail, State, stop, [Command|Acc]); |