facebook / mvfst

An implementation of the QUIC transport protocol.
MIT License
1.5k stars 244 forks source link

How to choose QUIC version #252

Closed wtao0221 closed 2 years ago

wtao0221 commented 2 years ago

Hi,

Is there any option to choose QUIC-v1 rather than the FB-draft version of QUIC?

kvtsoy commented 2 years ago

Yes, you can use setSupportedVersions(): https://github.com/facebookincubator/mvfst/blob/main/quic/client/QuicClientTransport.h#L125

And use QUIC_V1: https://github.com/facebookincubator/mvfst/blob/main/quic/QuicConstants.h#L288

kvtsoy commented 2 years ago

Also on server, setSupportedVersion(): https://github.com/facebookincubator/mvfst/blob/main/quic/server/QuicServer.h#L112

wtao0221 commented 2 years ago

Thanks! It worked!