Comments (5)
Interesting debugging! This does indeed sound like a Quiche issue. Can you post the link to the issue here?
from quic-go.
Correction: 0-RTT works with recent versions of caddy (v2.7.4) and quic-go (>v0.37.5). Sorry for the confusion.
However, while after each successful connection establishment, a NEW_TOKEN frame containing an address validation token is sent, that token is not used inside the initial packet of a subsequent connection, even when 0-RTT packets are sent alongside.
from quic-go.
Sounds like a Chromium bug, right? Iām not sure how Chromium handles tokens, might be worth capturing a packet trace when it connects to google.com or YouTube.
from quic-go.
I thought so too, but was not sure. After a bit of debugging, the issue is clear.
Chromium (or Quiche, more precisely) throws away tokens if they arrive before it gets a crypto frame containing a NewSessionTicket. It works as follows:
- Upon arrival of a NEW_TOKEN frame, the token gets stored alongside its associated server ID (i.e. a combination of host and port) inside a cache that holds TLS sessions.
- When a new session ticket arrives, the session gets added to the cache entry for the associated server
- This new session does not specify the same QUIC transport parameters and is therefore assumed to be related to another, more recent session. The old cache entry (containing the token) gets removed and a new entry without the token is inserted.
I am not quite sure if this behavior is intentional or not. It seems weird though.
quic-go currently always sends the token first:
Line 760 in 4a04618
If the NewSessionTicket is sent before the NEW_TOKEN frame, Quiche uses the token without issues.
AFAIK, a client should be able to use tokens independent of the TLS session ticket, therefore I will open an issue in the Quiche project.
from quic-go.
Thanks for opening the issue in Google Quiche! Is there anything left to do on the quic-go side, or should we close this issue?
from quic-go.
Related Issues (20)
- quic-go.newStream high memory usage HOT 7
- http3: response body not implemented http3.HTTPStreamer HOT 9
- Datagram no recent network activity error HOT 3
- bug: unable to connect to quiche servers HOT 5
- In some cases I have turned off Stream on the server side, but OpenStreamSync on the client side is still blocked HOT 6
- pass a context to ConnContext context, cancel it when the connection is closed
- Slow transfer speed HOT 10
- Wrong ACK numbers? HOT 1
- gquic branch usage HOT 1
- Go 1.21
- server incorrectly allows 0-RTT with reduced limits when using tls.Config.GetConfigForClient
- introduce a minimum step size of Path MTU Discovery
- Allow applications to specify MaxPacketBufferSize HOT 8
- add more metrics
- Significant Packet Delay with quic-go on iOS Due to Goroutine Handling HOT 3
- http3: RoundTripper is caching dialErr since v0.43.0 HOT 1
- Cancel retransmission of data when sending with quic Client HOT 1
- implement BBRv3 HOT 2
- use `net.ErrClosed` for the server and the connection HOT 3
- [Suggestion] multi-staging build in quic-go example Dockerfile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quic-go.