What does NTSTATUS 0xC0000237 (STATUS_GRACEFUL_DISCONNECT) mean?

 
Previous Next
STATUS_CONNECTION_REFUSED STATUS_ADDRESS_ALREADY_ASSOCIATED

STATUS_GRACEFUL_DISCONNECT

The peer closed the connection in an orderly way

These statuses describe transport endpoint and connection state. For STATUS_GRACEFUL_DISCONNECT, they can appear below higher-level file sharing, DFS, redirector, RPC, or networking code before the error is translated to Win32 or Winsock form.

This status indicates an orderly shutdown rather than corruption or reset. It is important when deciding whether to retry, report EOF, or treat the event as normal protocol termination.

For STATUS_GRACEFUL_DISCONNECT, for diagnostics, capture the endpoint address, address family, connection object, local and remote close/reset events, timeout, route, ICMP condition when available, and the higher-level component that issued the transport request.

What to inspect

  • Check whether the protocol allows the peer to finish the stream.
  • Do not classify this as packet loss by itself.
  • Inspect application-layer close messages before raising an error.

References for STATUS_GRACEFUL_DISCONNECT


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