Re: Socket error #10054 after multiple posts

Giganews Newsgroups
Subject: Re: Socket error #10054 after multiple posts
Posted by:  Remy Lebeau (re…@lebeausoftware.org)
Date: Fri, 17 Feb 2012

jstech2 wrote:

> One customer out of many, can do multiple Idhttp.post() commands, and
> then after 700 or 300 or sometimes just a few post() commands that
> sent successfully, I get the 10054 error and can not recover by simply
> trying to post() again.

10054 is WSAECONNRESET.  There are many different ways a connection would
be getting reset at the network layer.  Try calling TIdHTTP.Disconnect()
and clearing its IOHandler.InputBuffer before then attempting to post again.

> My guess is a 3rd party program is interupting the transfer.

Not necessarily.

--
Remy Lebeau (Indy Team)

Replies

In response to

Socket error #10054 after multiple posts posted by jstech2 on Fri, 17 Feb 2012