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

Wireshark cannot capture 0RTT #4151

Closed
LLL2000L opened this issue Nov 1, 2023 · 1 comment
Closed

Wireshark cannot capture 0RTT #4151

LLL2000L opened this issue Nov 1, 2023 · 1 comment

Comments

@LLL2000L
Copy link

LLL2000L commented Nov 1, 2023

Hello, why can't I capture 0-RTT in Wireshark even though I wrote the code like this? The code mainly includes a server and a client. The server listens for 0-RTT using listener, err := tr.ListenEarly(tlsConf, &quic.Config{Allow0RTT: true}), and the client dials using conn, err := tr.DialEarly(context.Background(), server, tlsConfDial, nil). Then, conn.CloseWithError(0x42, "error 0x42 occurred") is executed to close the client, and a subsequent connection is made to verify if 0-RTT is implemented. However, the result is that Wireshark does not capture 0-RTT, and the subsequent connection still goes through the initialization process. I am new to QUIC, so please let me know if there is anything wrong with my practice. I am looking forward to your response. Thank you.
The main code is as follows
server:

	tr := quic.Transport{
		Conn: udpConn,
	}
	listener, err := tr.ListenEarly(tlsConf, &quic.Config{Allow0RTT: true})
	if err != nil {
		fmt.Printf("failed: %s\n", err)
		return
	}
	for {
		conn, err := listener.Accept(context.Background())
		if err != nil {
			fmt.Printf("failed connect: %s\n", err)
			continue
		}
         }

client:

        tr := quic.Transport{
		Conn: udpConn,
	}
	conn, err := tr.DialEarly(context.Background(), server, tlsConfDial, nil)
	if err != nil {
		fmt.Printf("failed: %s\n", err)
		panic(err)
	}
	conn.CloseWithError(0x42, "error 0x42 occurred")
	rconn, err := tr.DialEarly(context.Background(), server, tlsConfDial, nil)
	rconn.CloseWithError(0x42, "error 0x42 occurred")
@marten-seemann
Copy link
Member

0-RTT requires resuming a previous connection. Please familiarize yourself with the RFC before asking questions here.

@marten-seemann marten-seemann closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants