-
hi, when I use StreamOpen with flag |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That flag, To use 0-RTT, you must use OpenSSL TLS (Schannel doesn't support it yet). Also, you must initially connect to the server and get a resumption ticket (received via the We don't have great docs or a sample for this yet. Might be a good idea to add both... @anrossi? |
Beta Was this translation helpful? Give feedback.
That flag,
QUIC_STREAM_OPEN_FLAG_0_RTT
, is merely a hint to the API that says "This stream data is allowed to be sent in 0-RTT". It doesn't mean it will always use 0-RTT. A number of conditions have to happen first, primarily that the connection actually supports and uses TLS resumption and 0-RTT. My guess is that is not happening.To use 0-RTT, you must use OpenSSL TLS (Schannel doesn't support it yet). Also, you must initially connect to the server and get a resumption ticket (received via the
QUIC_CONNECTION_EVENT_RESUMPTION_TICKET_RECEIVED
event). Then, on your next connection to the server, supply that token viaSetParam
with theQUIC_PARAM_CONN_RESUMPTION_TICKET
parameter.We don't …