-
Notifications
You must be signed in to change notification settings - Fork 20
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
Server exit with code = -1 immediately #3
Comments
Did you enable IPv6 on your running host? |
Hello, |
No I didn't. Should I enable it? Because I thought this demo is based on IPv4. Thanks, |
The picoquicdemo server binds two UDP sockets, one on IPv4 on 0.0.0.0, the other one on IPv6 with ::. I suspect the creation of the second socket being the source of your error.
and recompile picoquic with Or you enable IPv6 on your machine. Does one of these solutions work for you? |
It's the sign of a successful execution at least. By looking closely at the full log, you should see that data is exchanged on a few streams that eventually get gracefully closed.
I recommend not to change the code to make it IPv4 only, I suspect there are few other places to change than the two ones mentioned by Quentin. IPv6 can be trivially enabled these days. |
sure. Thanks for both of you :) |
HI,
When I
make
pquic, there is an error reported: it said IPV6_DONTFRAG is not defined. Then I modified all this macro as 0. It compiled successfully. But when I ran./picoquicdemo
. The terminal showsStarting PicoQUIC server on port 4443, server name = ::, just_once = 0, hrr= 0, 0 local plugins and 0 both plugins Server exit, ret = -1 Server exit with code = -1
I used CentOS 7 as the environment. How should I proceed?
Thanks and regards,
Xiangrui
The text was updated successfully, but these errors were encountered: