Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Dec : Connection Closed Gracefully
| Subject: | Connection Closed Gracefully |
| Posted by: | "gandalf" (ganda..@haschangedaddress.com) |
| Date: | Wed, 7 Dec 2005 18:14:53 |
I know this has been raised many times but I simply cannot find a
satisfactory answer to it.
Yes I have googled the groups and I have read the article
Connection Closed Gracefully Author: Chad Z. Hower
But nowhere have I seen an answer to it.
For me it manifests as follows:
Using Indy 10, TidHttp as client. D2005
Every now again I get this 'exception' on the Post portion of this code:
// try
if RadioGroup1.ItemIndex=1 then
ResultStr.Text:=idHttp1.Post(myUrl, Params) else
ResultStr.Text:=idHttp1.Get(myUrl);
// except
// Beep;
// end;
I can make the reporting of the exception go away with a simple try/except
wrapper, but doesn't help me as next time through a 'real' exception
EAccessViolation occurs and then idHttp1 is useless until I close down and
restart.
I have to force this error by making multiple rapid requests for this Post
and, after some period, I will get the exception. However some users get it
immediatly and others never get it all. So what is the answer? What am I
supposed to do once I have the exception, ignoring it does not help.
Hope someone knows.