IO Completion Ports socket error
-
hi guys, we have a game server/written in c++/ and an application/written in erlang/ simulating thousand of users playing on the game server. The server manages connections using IO Completion ports, but when launching many/thousands connections/ against the server it starts dropping connections - the erlang application reports that the socket is closed, while trying to write to the socket. How can I get the reason for closing the socket on the server side - with GetLastError function i'm getting just the error code of the io operation attempt on the socket. But I need the error for socket closure, please help! All ideas are welcomed, Thanks yani
-
hi guys, we have a game server/written in c++/ and an application/written in erlang/ simulating thousand of users playing on the game server. The server manages connections using IO Completion ports, but when launching many/thousands connections/ against the server it starts dropping connections - the erlang application reports that the socket is closed, while trying to write to the socket. How can I get the reason for closing the socket on the server side - with GetLastError function i'm getting just the error code of the io operation attempt on the socket. But I need the error for socket closure, please help! All ideas are welcomed, Thanks yani
socket closure causes 1. completion of a queued read operation with 0 bytes(gracefull close) and this is no error. or/and 2. GetQueuedCompletionStatus returns false. now GetLastError returns the error of the queued operation. U gotta mungle with the OS's settings to allow more sockets and give WSAAccept/accept a big queue.