bonesoul / CoiniumServ

Next-gen crypto currency mining pool software
Other
794 stars 494 forks source link

Socket exceeption #584

Open artbatista opened 9 years ago

artbatista commented 9 years ago

Running develop from yesterday on Windows 7

10/15/2014 13:06:03 -04:00 [Debug] [ShareManager] [AppleByte] Share accepted at 1076.59/1024 by miner AXKhdLE6Ydy8wCP5YfAXrkc3rewSfRb4sL 10/15/2014 13:06:03 -04:00 [Information] [StratumServer] [AppleByte] Stratum client disconnected: "107.170.50.27:10579" 10/15/2014 13:06:03 -04:00 [Information] [StratumServer] [AppleByte] Stratum client disconnected: "107.170.50.27:10579" 10/15/2014 13:06:03 -04:00 [Error] [StratumServer] [AppleByte] Send System.Net.Sockets.SocketException (0x80004005): A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at CoiniumServ.Server.Mining.Stratum.Sockets.SocketServer.Send(Connection connection, Byte[] buffer, Int32 start, Int32 count, SocketFlags flags) in d:\CoiniumServ-develop\src\CoiniumServ\Server\Mining\Stratum\Sockets\SocketServer.cs:line 250

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5304580-socket-exceeption?utm_campaign=plugin&utm_content=tracker%2F401667&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F401667&utm_medium=issues&utm_source=github).
frndxyz commented 9 years ago

because you client is disconnected but socket not properly closed by server and server try to brodcast data on closed socket raise this error. check internet speed or miner connectivity and try again.

bonesoul commented 9 years ago

Will be fixing with the upcoming socket code refactor.