-
Notifications
You must be signed in to change notification settings - Fork 9
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
Listener Example #161
Comments
Have you looked at the test code here? It might help you put things together. |
I tried, I'm not sure what I 'm doing wrong.
// this never returns; |
Are you using a self-signed certificate? I believe you have to do some special stuff on the Chrome side to get it to accept self-signed certs. |
Yes, this certificate is imported to the trusted store so Chrome considers it safe. It is also used to the normal HTTP server which contains the alt-svc header that redirects to quic. As I asked before, the certificate must be passed on callback, are you sure I have to do it after the connection is returned? |
You can grab MsQuic logs to see what exactly is happening at the QUIC layer, but I suspect you'll need to look at Chrome logs to see what's up. I still suspect certificate issues. Chrome might not use the machine store to validate certificates, but instead maintain its own list of trusted CAs. |
No, Chrome uses the machine store to validate, because in my HTTP local server the certificate works. As I said, I suspect that the certificate isn't set correctly.
|
Btw in curl it works |
Have you tried to grab Chrome logs? What version of HTTP/3 did you use with curl? msh3 or one of the others? |
curl uses ngtcp2.I will have to check Chrome's certificate stuff because in plain HTTPS it uses the store, it seems there's not the case in quic. Another thing: is this correct? curl receives the headers but then says 'HTTP/3 stream 0 was not closed cleanly: (err 270) Between msquic it works correctly.
|
|
Could be a bug in the HTTP stack you're using with Curl. Try the msh3 version of curl? |
I did this:
Upon chrome connection, li.NewRequest.Wait() returns successfully a MsH3Connection* , however at that point I can't do anything else. The configuration/certificate is supposed to be created before the callback returns.
Any clues on the server usage?
The text was updated successfully, but these errors were encountered: