CodeDB
CodeDB copied to clipboard
CDB Serve doesn't fail when listening on a port which is already taken.
Start two instances of cdb serve, watch both run, one should fail due to the listening socket already taken.
Works (or fails, depending on how you look at it) on linux with: "Error: Address already in use". Will have to investigate why it doesn't work as expected on windows.
The problem seems to be the brokenness of windows and usage of reuse address. Simply disable the socket option reuse_address for windows.