scratchfoundation / scratch-link

Device interoperability layer for Windows and MacOS
BSD 3-Clause "New" or "Revised" License
102 stars 83 forks source link

Fix missing the warning dialog of "port 20110 is already in use" on Windows #158

Closed terado0618 closed 4 years ago

terado0618 commented 4 years ago

Resolves

Fixes missing the warning dialog of "port 20110 is already in use"

Proposed Changes

Reason for Changes

Our testing team founds an issue that there is no warning dialog of "port 20110 is already in use".

According to the latest implementation, Fleck v1.1.0 supports dual stack by reusing the port with SocketOptionName.ReuseAddress. When the port 20110 is already in use, this causes System.Net.Sockets.SocketException instead of SocketError.AddressAlreadyInUse.

Avoid this unexpected behavior, dual stack should be disabled.