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

feat: support to enable quic and add basic test case #10989

Merged
merged 14 commits into from
Mar 6, 2024
Merged

feat: support to enable quic and add basic test case #10989

merged 14 commits into from
Mar 6, 2024

Conversation

zll600
Copy link
Contributor

@zll600 zll600 commented Mar 4, 2024

Description

Fixes #6403

support enable quic for apisix.

I will add a how-to guide in another PR.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

set -ex

# use curl which supports http3 to test.
install_static_curl
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curl from apt does not support option --http3-only to test. So we need a newer version of curl

t/APISIX.pm Outdated Show resolved Hide resolved
@zll600 zll600 mentioned this pull request Mar 4, 2024
5 tasks
apisix/cli/ngx_tpl.lua Outdated Show resolved Hide resolved
@zll600 zll600 marked this pull request as ready for review March 4, 2024 07:37
conf/config-default.yaml Outdated Show resolved Hide resolved
t/node/grpc-proxy.t Outdated Show resolved Hide resolved
t/node/http_host.t Outdated Show resolved Hide resolved
t/quic/admin/basic.t Outdated Show resolved Hide resolved
apisix/init.lua Show resolved Hide resolved
ci/common.sh Outdated Show resolved Hide resolved
.github/workflows/quic.yml Show resolved Hide resolved
@@ -407,7 +413,12 @@ Please modify "admin_key" in conf/config.yaml .

if ip_port_to_check[addr] == nil then
table_insert(listen_table,
{ip = ip, port = port, enable_http2 = enable_http2})
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you explain the usage of this block briefly? And why this change is needed.

Copy link
Contributor Author

@zll600 zll600 Mar 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because I want to add a new field enable_quic. If I add enable_quic directly, the length of this line will be too long to cause a lint error.

ci/common.sh Outdated Show resolved Hide resolved
ci/common.sh Outdated Show resolved Hide resolved
apisix/init.lua Show resolved Hide resolved
conf/config-default.yaml Outdated Show resolved Hide resolved
t/quic/admin/basic.t Outdated Show resolved Hide resolved
ci/common.sh Outdated Show resolved Hide resolved
Copy link
Member

@membphis membphis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

need a better title, eg: feat: support to enable quic and add basic test case

@zll600 zll600 changed the title feat: support enable quic feat: support to enable quic and add basic test case Mar 6, 2024
Copy link
Member

@membphis membphis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@monkeyDluffy6017 monkeyDluffy6017 merged commit b83a20b into apache:master Mar 6, 2024
46 checks passed
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

Successfully merging this pull request may close these issues.

feat: apisix support QUIC+HTTP3
4 participants