Why do I keep getting EIdConnClosedGracefully exceptions?

Previous  Top  Next

For Servers

 

The client has disconnected the socket normally and this exception is used to notify the server handling code. From the IDE just hit F9 to resume program execution and Indy will catch and handle the exception.

 

For Clients

 

The server side of this connection has disconnected normally but your client has attempted to read or write to the connection. You should trap this error using a try..except or in C++ Builder, a try..catch block.

 

There is more detail about the EIdConnClosedGracefully exception in an article at the Indy Portal titled Connection Closed Gracefully.

 

Please also see the help file for possible further information.

 

See also:

 

Why does Indy raise exceptions as part of its normal operation?
Why do I get 10038 exceptions raised when I shut down my servers?