quic_dist_tickets (quic v0.11.0)

View Source

Session ticket storage for 0-RTT fast reconnection.

This module manages session tickets received from peer nodes, enabling 0-RTT reconnection which reduces connection latency significantly.

How It Works

1. After a successful TLS handshake, the server sends session tickets 2. The client stores these tickets associated with the node name 3. On reconnection, the client can use the ticket for 0-RTT 4. Tickets expire after their lifetime and are cleaned up

Summary

Functions

Manually trigger cleanup of expired tickets.

Delete a session ticket for a node.

Look up a session ticket for a node.

Start the ticket storage server.

Store a session ticket for a node.

Functions

cleanup()

-spec cleanup() -> ok.

Manually trigger cleanup of expired tickets.

code_change(OldVsn, State, Extra)

delete(Node)

-spec delete(Node :: node()) -> ok.

Delete a session ticket for a node.

handle_call(Request, From, State)

handle_cast(Msg, State)

handle_info(Info, State)

init(_)

lookup(Node)

-spec lookup(Node :: node()) -> {ok, term()} | {error, not_found | expired}.

Look up a session ticket for a node.

start_link()

-spec start_link() -> {ok, pid()} | {error, term()}.

Start the ticket storage server.

store(Node, Ticket)

-spec store(Node :: node(), Ticket :: term()) -> ok.

Store a session ticket for a node.

terminate(Reason, State)