sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

After stop/playing a good amount of times (Editor), game server socket gets stuck open (?)

Open DevulTj opened this issue 1 year ago • 2 comments

System.Net.Sockets.SocketException (10048): Only one usage of each socket address (protocol/network address/port) is normally permitted.
   at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, Boolean disconnectOnFailure, String callerName)
   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 Sandbox.Network.TcpSocket.SocketThread(String address, Int32 port, CancellationToken token)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Sandbox.Tasks.ExpirableSynchronizationContext.ProcessQueue()

DevulTj avatar Jun 03 '24 13:06 DevulTj

I seem to get this every single time I launch my game? I'm unable to do any local multiplayer development due to it.

matekdev avatar Aug 16 '24 21:08 matekdev

We get this everytime in our game: https://github.com/Small-Fish-Dev/deathcard/

yuberee avatar Aug 17 '24 11:08 yuberee

This should not happen anymore.

kurozael avatar Aug 20 '24 13:08 kurozael