Skip to content

[BUG] Does not receive a close or error message. and the mapping configured in the host file does not take effect #486

Closed

Description

@engun

System version :window11 x64
IXWebSocket version :v11.4.4

There are two known problems:

  1. If the server is unexpectedly disconnected, IXWebSocket does not receive a close or error message
  2. When the network is unavailable, the mapping configured in the host file does not take effect
127.0.0.1 eg.com

Hats off to open source authors

Activity

  1. bsergean commented on Nov 17, 2026

    @bsergean
    Collaborator

    Both areas in this v11.4.4 report have had targeted fixes since it was filed:

    1. Merged PR Fix no callback when the server is disconnected on windows #548 maps Windows FD_CLOSE into readable/error processing so an unexpected peer disconnect reaches the receive/close path instead of being ignored.
    2. Merged PR Avoid AI_ADDRCONFIG netlink path for DNS lookups (#560, #524) #589 avoids AI_ADDRCONFIG for numeric addresses and retries hostname resolution without that flag when it fails. This addresses loopback/offline resolution failures while retaining hosts-file resolution. Numeric parsing is being further simplified in Fix DNS worker lifetime and add a synchronous resolver fallback #656.

    Current Windows CI passes the socket, connection and shutdown tests. I have not reproduced this exact custom-hosts/offline setup on a Windows machine during this investigation, so that specific environment should be retested on current master if the symptom remains.

    Closing this older report as covered by the targeted fixes above. Please reopen with current version/backend, the updated error, and a minimal hosts-file/offline reproduction if either behavior persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions