Re: Handle a ClosedGracefully

Giganews Newsgroups
Subject: Re: Handle a ClosedGracefully
Posted by:  Remy Lebeau \(Indy Team\) (
Date: Mon, 8 Oct 2007

"RonaldoC" <ronald…> wrote in message

> After I execute an IdHttp.POST and everything works
> well, at the next POST I receive a ClosedGracefully event
> message at my exception.

The only way I can think of that happening is if the server (or an
intermediate router) is closing the connection after sending the first
response, but the response headers indicate that the connection was going to
be kept alive on the server side, so TIdHTTP would not close its end of the
connection right away.  On the next Post(), it would then try to access an
invalid connection and fail.  Try fully disconnecting the connection and
attempt the request again.




In response to

Handle a ClosedGracefully posted by RonaldoC on Mon, 8 Oct 2007