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

[Bug]: Application Error Code (0x1d) Allowed in QUIC Initial Packets, Violates RFC 9000 #473

Open
jiangshaoqi opened this issue Jan 31, 2025 · 0 comments

Comments

@jiangshaoqi
Copy link

What happened?

The library incorrectly allows sending CONNECTION_CLOSE frames with Application Error codes (0x1d) in QUIC Initial packets, which violates RFC 9000 protocol rules.

Expected Behavior:

According to RFC 9000 Section 10.2.3, only Transport Error codes (0x1c) should be allowed in Initial/Handshake packets.

Actual Behavior:

The library permits Application Error codes (0x1d) in Initial packets, causing potential interoperability failures with compliant QUIC implementations (e.g., clients/servers may reject the connection or trigger protocol errors).

Steps To Reproduce

When calling connection close function, with err_code 0x1d:
xqc_write_conn_close_to_packet(xqc_connection_t *conn, uint64_t err_code)

Relevant log output

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

1 participant