Skip to content

Connection failure - WSAGetLastError returns 126 "The specified module could not be found." #24

@FunkyFr3sh

Description

@FunkyFr3sh

I got a special case here where WSAGetLastError returns 126 (ERROR_MOD_NOT_FOUND)

it happens here:

if(WSAGetLastError() == WSAEWOULDBLOCK || WSAGetLastError() == WSAECONNRESET)

The result of it is that the socket will be closed and the multiplayer part doesn't work anymore:
ipxwrapper.zip

I added ERROR_MOD_NOT_FOUND to your WSAEWOULDBLOCK and WSAECONNRESET check so the error gets ignored. It does fix the problem, but I'm not sure if that's the correct solution?
I don't understand how it could return ERROR_MOD_NOT_FOUND on WSAGetLastError, you have any ideas what's up with that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions