ѕeмa™ 308 Posted August 6, 2017 Share Posted August 6, 2017 (edited) Hi, I have a problem with if (m_lpCharacter) { m_lpCharacter->Disconnect("DESC::~DESC"); m_lpCharacter = NULL; } When my character log in automatically is disconnect My server is working in Windows (Game and DB is in release) (This only happen in release, in debug works perfectly) Game.exe image DB.exe image Game.exe (AUTH) image I hope someone can help me to find the error. If you need more information, please leave it in the comments. Thanks. Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal https://m2admin.net/ Link to comment Share on other sites More sharing options...
Premium North 1171 Posted August 6, 2017 Premium Share Posted August 6, 2017 https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx WSAECONNRESET 10054 Connection reset by peer. An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET. 1 Link to comment Share on other sites More sharing options...
ѕeмa™ 308 Posted August 6, 2017 Author Share Posted August 6, 2017 hace 11 minutos, Fleon dijo: https://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx WSAECONNRESET 10054 Connection reset by peer. An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket). This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET. thanks, i will search how to fix it, i tried disconnecting windows firewall, and some others stuff but still without fix it. I read that maybe a program is blocking the conexion or something like that the server refused the connect right? https://m2admin.net/ Link to comment Share on other sites More sharing options...
Premium North 1171 Posted August 6, 2017 Premium Share Posted August 6, 2017 I dont know what you have added to your window source but this can be the solution in most cases: This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. You can even return the string of the error by using FormatMessage into the GetLastError func that is triggering that 10054 code you have a code sample in the ms documentation https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now