Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: change default of the socket used by net.listen_tcp, to dualstac…
…k, even if the OS has a different default. Allow changing the listen backlog too With this change, example vweb programs, will continue to be available to both ipv6 and ipv4 connections from the same machine, even after doing (on linux): `echo 1 | sudo tee /proc/sys/net/ipv6/bindv6only` Previously, after that, vweb programs responded only to ipv6 connections, but not to ipv4 ones, i.e. opening http://127.0.0.1:8082/ stopped working, for `v run examples/vweb/vweb_example.v` . Note: GO web servers have the same behaviour, which is convenient for development/testing, since it makes the programs more consistent and robust in the face of OS settings changes.
- Loading branch information