Site icon EfmSoft

What does Windows error code 1226 (ERROR_GRACEFUL_DISCONNECT) mean?

 
Previous Next
ERROR_CONNECTION_REFUSED ERROR_ADDRESS_ALREADY_ASSOCIATED

ERROR_GRACEFUL_DISCONNECT

The connection reached an orderly closed state

ERROR_GRACEFUL_DISCONNECT means the network connection was gracefully closed. It can be surfaced by different networking components; the Win32 value is not inherently specific to Remote Desktop Gateway. The peer or local owner completed an orderly disconnect instead of leaving a reset or aborted transport state.

What to record

  • Identify the API, protocol, connection/session identifier, which endpoint initiated closure, and the last successfully completed application operation.
  • Separate expected end-of-session handling from a premature close that violates the application's higher-level protocol.
  • If a component wraps this code with a more specific reason, preserve that reason and the preceding protocol message.

Recovery boundary

Do not retry automatically merely because the result is nonzero. For an expected close, release connection state normally; for an unexpected close, diagnose why the application or peer ended the session and reconnect according to that protocol's lifecycle.

References


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

Exit mobile version