You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CONNECT-UDP in forwarding proxy mode resets stream and fails to send HTTP Datagrams #34836
Title: CONNECT-UDP in forwarding proxy mode resets stream and fails to send HTTP Datagrams
Description:
When Envoy is configured as a CONNECT-UDP forwarding proxy, where it forwards the requests to upstream and HTTP Datagrams without terminating HTTP, it fails to forward the HTTP Datagrams and resets the stream.
Repro steps:
Use the example config in configs/proxy_connect_udp_http3_downstream.yaml to run a CONNECT-UDP forwarding proxy, and send CONNECT-UDP request and subsequent HTTP Datagrams to it.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
Thanks for your patience, @Bfarkiani. We identified the issue thanks to your report. The fix has been merged into the main branch, so could you please try the forwarding mode again on your end after fetching the main branch? I was able to successfully make the two Envoy proxies (one for forwarding and the other for terminating) receive an HTTP/3 response from google.com using masque_client locally. Please let me know if you run into any problems.
The access log shows that it returned a 200 status code, so it seems to be working fine. You can pass the --stderrthreshold=0 flag to see the response printed out. Here's the command I used:
Activity
jeongseokson commentedon Jun 21, 2024
/assign @jeongseokson
github-actions commentedon Jul 21, 2024
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
github-actions commentedon Jul 28, 2024
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
jeongseokson commentedon Aug 26, 2024
@RyanTheOptimist Hi Ryan, can you reopen it and mark it as no stale? I am currently working on this issue.
DavidSchinazi commentedon Aug 26, 2024
/nostalebot
DavidSchinazi commentedon Aug 26, 2024
@RyanTheOptimist while you're reopening this one, please also close #33775 - thanks!
RyanTheOptimist commentedon Aug 26, 2024
Done!
http: fix issues in CONNECT-UDP forwarding mode. (#36174)
jeongseokson commentedon Sep 23, 2024
Thanks for your patience, @Bfarkiani. We identified the issue thanks to your report. The fix has been merged into the main branch, so could you please try the forwarding mode again on your end after fetching the main branch? I was able to successfully make the two Envoy proxies (one for forwarding and the other for terminating) receive an HTTP/3 response from google.com using masque_client locally. Please let me know if you run into any problems.
Bfarkiani commentedon Sep 26, 2024
Dear @jeongseokson . Thank you for your help. I tested with the following configs:
Client
Server:
Command:
./masque_client --disable_certificate_verification --allow_unknown_root_cert 127.0.0.1:10000 https://www.google.comClient proxy printed:
Server proxy printed:
[2024-09-26T01:28:26.722Z] "GET /.well-known/masque/udp/www.google.com/443/ HTTP/3" 200 - 4128 72019 516 - "-" "-" "700cf726-5f78-4fb9-85fe-e3e2c12f89b5" "www.google.com:443" "142.250.191.132:443"Command returned with no error and no data. I think it is the expected behavior?
Thank you.
jeongseokson commentedon Sep 27, 2024
The access log shows that it returned a 200 status code, so it seems to be working fine. You can pass the --stderrthreshold=0 flag to see the response printed out. Here's the command I used:
$ ./masque_client --stderrthreshold=0 --disable_certificate_verification 127.0.0.1:10000 https://www.google.com/
Bfarkiani commentedon Sep 30, 2024
@jeongseokson Yes it works fine. masque_client did not report any error.
Thank you.
jeongseokson commentedon Oct 8, 2024
Great! I'm glad it finally worked.