Certain method structure cause vweb to not be able to listen anymore #19510
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: vweb
Bugs/feature requests, that are related to the `vweb`.
Describe the bug
The program starts and vweb is seemingly working but no webserver is listening on the port, resulting in the curl error.
Additionally, what should be mentioned, that compilation suddenly takes ~5x as long with the last method included.
So far I could only reproduce it if there are two methods returning a bool, with one having at least one arbitrary argument. This does not occur when using functions instead of struct methods.
This strange behavior was of course observed in a much bigger program but I was able to distill it down to the following code.
Reproduction Steps
Compile the above code, run the program and request using
curl localhost:8080
Expected Behavior
Hello World
Current Behavior
Failed to connect to localhost port 8080 after 1 ms: Couldn't connect to server
(Nothing is listening on 8080)Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.2 4b03d08
Environment details (OS name and version, etc.)
Note
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: