property ClosedGracefully: boolean;DescriptionClosedGracefully 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.根据帮助,说明你的Buffer里面已经没有数据了,你仍然要去读就会出现这个情况