hikalkan / scs

TCP Server/Client Communication and RMI Framework
MIT License
225 stars 112 forks source link

Stop and restart server with exception #36

Open BuiTanDuoc opened 6 years ago

BuiTanDuoc commented 6 years ago

Stop and restart server with exception on port 800, other ports are OK: Stop --> Waiting for _running = false --> Start

20-07 23:05:17 [SERVER] [EXCEPTION][d__9.MoveNext]: DeviceRouteFactory :Only one usage of each socket address (protocol/network address/port) is normally permitted at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.Net.Sockets.TcpListener.Start(Int32 backlog) at Hik.Communication.Scs.Communication.Channels.Tcp.TcpConnectionListener.StartSocket() in D:\Bitbucket\Adsun-Service-BM\Src\Libs\Scs\Communication\Scs\Communication\Channels\Tcp\TcpConnectionListener.cs:line 74 at Hik.Communication.Scs.Communication.Channels.Tcp.TcpConnectionListener.Start() in D:\Bitbucket\Adsun-Service-BM\Src\Libs\Scs\Communication\Scs\Communication\Channels\Tcp\TcpConnectionListener.cs:line 51 at Hik.Communication.Scs.Server.ScsServerBase.Start() in D:\Bitbucket\Adsun-Service-BM\Src\Libs\Scs\Communication\Scs\Server\ScsServerBase.cs:line 99 at Route.DeviceRoute.DeviceRouteFactory.d__9.MoveNext() in D:\Bitbucket\Adsun-Service-BM\Src\Route\DeviceRoute\DeviceRouteFactory.cs:line 84