Re: Aborting a TIdHttp Connection from another thread is not thread-safe

Giganews Newsgroups
Subject: Re: Aborting a TIdHttp Connection from another thread is not thread-safe
Posted by:  Remy Lebeau \(Indy Team\) (re…@lebeausoftware.org)
Date: Fri, 21 May 2010

"Andreas Hesse" <…@ahsysteme.de> wrote in message
news:D54B52F4EBAFE340…@ahsysteme.de...

> Doing some stress tests I run into memory errors.

Such as?

> So aborting a connection from another thread is not thread-safe.

How exactly are you aborting the connection?  Please show your code.

> Any chance to make it thread safe?

Closing a socket hande in general is already thread-safe.  So something else
has to be going wrong.

--
Remy Lebeau (TeamB)

Replies

In response to

Aborting a TIdHttp Connection from another thread is not thread-safe posted by Andreas Hesse on Fri, 21 May 2010