kalven / CodeDB

A simple indexing program to quickly search through source code.
21 stars 1 forks source link

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

Open noj opened 13 years ago

noj commented 13 years ago

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

kalven commented 13 years ago

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.

noj commented 13 years ago

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