CodeDB icon indicating copy to clipboard operation
CodeDB copied to clipboard

CDB Serve doesn't fail when listening on a port which is already taken.

Open noj opened this issue 14 years ago • 2 comments

Start two instances of cdb serve, watch both run, one should fail due to the listening socket already taken.

noj avatar Feb 24 '11 12:02 noj

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.

kalven avatar Feb 24 '11 22:02 kalven

The problem seems to be the brokenness of windows and usage of reuse address. Simply disable the socket option reuse_address for windows.

noj avatar Feb 25 '11 09:02 noj