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

curl: quiche_conn_recv() == -10 #91

Closed
bagder opened this issue Aug 2, 2019 · 4 comments
Closed

curl: quiche_conn_recv() == -10 #91

bagder opened this issue Aug 2, 2019 · 4 comments

Comments

@bagder
Copy link
Contributor

bagder commented Aug 2, 2019

When I build curl with the current quiche code (git master commit a90de02) (with ./configure --with-quiche=[src] in the curl tree, using current curl git master) on 64 bit Debian Linux and run it like this:

./src/curl --http3-direct https://quic.tech:8443 -v

it ends up getting -10 (QUICHE_ERR_TLS_FAIL) returned from the quiche_conn_recv() function.

I don't understand why and would need some help on how to diagnose and get further on this. Can I get more debug info or logging somehow to better understand the details of this failure?

Am I using the wrong end point for my test?

@LPardue
Copy link
Contributor

LPardue commented Aug 2, 2019

https://quic.tech:8443 is talking h3-20, which should align with the commit you pint at.

Are you setting the ALPN ID to the correct value with quiche_config_set_application_protos()?

@LPardue
Copy link
Contributor

LPardue commented Aug 2, 2019

https://github.com/curl/curl/blob/3af0e76d1e71995b7790c74e79b76af86ee7c681/lib/vquic/quiche.c#L73 suggests you are trying to talk hq-20. For H3, you can do something like

quiche_config_set_application_protos(qs->cfg,
        (uint8_t *) QUICHE_H3_APPLICATION_PROTOCOL,
        sizeof(QUICHE_H3_APPLICATION_PROTOCOL) - 1);

@bagder
Copy link
Contributor Author

bagder commented Aug 2, 2019

Thanks, that was indeed the problem.

@LPardue LPardue closed this as completed Aug 2, 2019
@LPardue
Copy link
Contributor

LPardue commented Aug 2, 2019

Please reopen if there is some problem.

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