Closed pablogranolabar closed 4 years ago
I have zero experience with cronet, so I'm not going to be of much help regarding your custom code. Before going any further I suggest you try connecting to the following public servers using the same code:
https://bagder.github.io/HTTP3-test/
If the failure is truly specific to aioquic
I'd be happy to look into it, otherwise I'd say the problem lies elsewhere.
Thanks jlaine, I'll try that next!
Ok, so with our current Cronet setup we've been able to successfully test each of these endpoints listed on the badger.github.io site, all with successful responses. So it looks like it's something I've setup wrong on the aioquic side instead of Cronet on Android.
I am sniffing traffic and see it coming in on the ingress side, but no response from aioquic in return. So there is no debugging information even showing up in http3_server.py verbose logging or the QUIC protocol logs themselves.
Hi again jlaine,
We still haven't been able to figure out this issue in connecting to aioquic, and our Cronet client connects without issue to all of the endpoints @ https://bagder.github.io/HTTP3-test/.
Any ideas? Is there a public endpoint for aioquic that we can test against as well, to try to figure out the issue? Thanks in advance
If you have tested all the endpoints in the linked page, you've already successfully tested two endpoints based on aioquic
:
quic.aiortc.org
: this is purely the demo server provided in examples/http3_server.py
pgjones.dev
: this is hypercorn
which relies on aioquic
for HTTP/3 support
Thanks jlaine. Would it be possible to share the command line options / configuration for those endpoints?
I can only speak for quic.aiortc.org
which runs:
python examples/http3_server.py --certificate demo/ssl_cert.pem --private-key demo/ssl_key.pem --port 443 --quic-log examples/htdocs/logs
Thanks jlaine. We've got a different approach for Android that I am exploring today, I will keep you posted with developments. Thanks for your help.
Hi!
Thanks again for your work on this project. I've been setting up a test environment here, to experiment with Android + Cronet HTTP/3 libs for a mobile app.
I am simply using http3_server.py with the demo:app ASGI module, but cannot get Cronet to even negotiate a connection. Here is the error:
Here's the relevant Cronet code:
We are able to connect without issue to the public QUIC endpoints above; for this local setup we have signed Let's Encrypt certs and are using the following command line to serve a one line index.html from examples/htdocs:
Any ideas?
Thanks in advance!