-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
vweb: host 0.0.0.0 breaks with -prod and flags #20441
Comments
Also fails when you put 127.0.0.1, maybe with another values also fails |
It didn't reproduce, but I tested it on MacOS. |
Yes, it's free, I tested also inside a docker with the image alpine:latest, and also fails
I have not tested the example, but with a vweb version with more code it's failing with the same error |
That's a bit weird. I tested it on rockylinux and it passed... |
Yep, now in ubuntu fails, but in alpine it's working (with more flags), but in that PR it's failing, not with the same error code but: |
If you consistently can get a failed PR there should be a precise repro. The code you posted here seems to work fine for us, under the conditions you provided. PS. you quoted two different socket error codes - is it 99 or 9? In the PR it's 99.
|
@hholst80 I'm getting the two errors, in different systems, I'm going to try to get an example to repoduce it. |
Maybe the problem occurs when it's only available ipv4, when try to bind to ipv6 and it's not available it's failing |
It seems that now it's working as spected. |
It's failing again, I can't reproduce in local |
Describe the bug
Gives this error:
V panic: failed to listen 0 net: socket error: 9; code: 9; binding to 0.0.0.0:8080 failed
v hash: 6b3449b
Reproduction Steps
Run vweb with 0.0.0.0 as host and a port, with this flags:
v -prod -d no_segfault_handler .
orv -prod -cflags "-static" .
Expected Behavior
Run as dev builds:
'[Vweb] Running app on http://0.0.0.0:8080/'
Current Behavior
V panic: failed to listen 0 net: socket error: 9; code: 9; binding to 0.0.0.0:8080 failed
v hash: 6b3449b
Possible Solution
No response
Additional Information/Context
No response
V version
latest (0.4.3 6b3449b)
Environment details (OS name and version, etc.)
OS: linux, Ubuntu 22.04.3 LTS
Processor: 64bit, little endian
CC version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: