What does Windows error code 10112 (WSAEREFUSED) mean?

 
Previous Next
WSA_E_CANCELLED WSAHOST_NOT_FOUND

WSAEREFUSED

WSAEREFUSED is described by Winsock as an actively refused database query. Despite the word “refused,” it is not the same code as WSAECONNREFUSED, which is used for a transport connection rejected by a target endpoint.

Focus on the lookup path

Winsock name and service resolution can involve namespace providers and provider-specific databases. The failure therefore needs the query context: service class, namespace, instance name, protocol restrictions, and the provider that processed the request.

What to capture

  • The WSAQUERYSET restrictions supplied to the lookup.
  • The namespace identifier and installed provider list.
  • Whether the same lookup succeeds with a different namespace or on another machine.
  • Provider or policy logs that explain why the query was rejected.

Retry policy should follow the provider's reason, not the generic name of the code. An administrative refusal is unlikely to improve through rapid retry, while a provider-specific transient condition may. Do not merge this metric with TCP connection-refusal statistics.

Microsoft: Winsock error codes · Microsoft: WSALookupServiceBegin · Microsoft: Winsock name resolution


Looking for a different code? Search another status or error code.