Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward SSL tickets to the client code #276

Merged
merged 3 commits into from
Feb 14, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Send escalus_ssl_early_data_result to the client
  • Loading branch information
arcusfelis committed Feb 14, 2025
commit 6d2f19aa6be23522109f624f0c5795a07ee406c2
3 changes: 3 additions & 0 deletions src/escalus_tcp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ handle_cast(stop, State) ->
handle_info({tcp, Socket, Data}, #state{socket = Socket, ssl = false} = State) ->
NewState = handle_data(Socket, Data, State),
{noreply, NewState};
handle_info({ssl, _Socket, {early_data, Result}}, #state{owner = Owner} = State) ->
Owner ! {escalus_ssl_early_data_result, self(), Result},
{noreply, State};
handle_info({ssl, Socket, Data}, #state{socket = Socket, ssl = true} = State) ->
NewState = handle_data(Socket, Data, State),
{noreply, NewState};
Expand Down