Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPConnection.ClosedGracefully
Indicates that the connection has closed without data in the read buffer.

property ClosedGracefully: Boolean;
Description
ClosedGracefully is a read-only Boolean property that indicates if a connection has closed without data in the Indy read buffer, or if it was abruptly lost.

CloseGracefully is True when the connection calls Disconnect, and has meaning only when Connected is False.

CloseGracefully is updated in ReadFromStack when a the socket handle for the connection is ready for read operations.