🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages Started by Paul Fletcher Fri, 18 Jun 2004 11:30
Indy TIdHTTP
#5744
Author: Paul Fletcher
Date: Fri, 18 Jun 2004 11:30
19 lines
1528 bytes
Hi,

I am trying to use TIDHTTP from a number of threads (one for each, created
on the fly).

If I use a Synchronize-ed method to execute the Get() method then all is
well, but if I don't the application hangs somewhere in the Get(). I have
therefore assumed TIDHTTP is not thread safe, can anyone confirm this.

The reason I'm wanting to spin a number of HTTP threads is I am building a
web server load tester, so having to go through Synchronize() really is not
an option for me (cos is always ends up with one connection at a time).

If Indy does have a threading issue in the respect does anyone know of a
thread safe HTTP client type comp or do I need to "get WinSocking" ???

Regards,

Paul.
Re: Indy TIdHTTP
#5745
Author: Remy Lebeau (TeamB)
Date: Fri, 18 Jun 2004 16:44
15 lines
1397 bytes
"Paul Fletcher" <paul.fletcher@systemc.com> wrote in message
news:40d2d249$1@newsgroups.borland.com...

> If I use a Synchronize-ed method to execute the Get() method
> then all is well, but if I don't the application hangs somewhere
> in the Get(). I have therefore assumed TIDHTTP is not thread
> safe, can anyone confirm this.

TIdHTTP works just fine in a thread without calling Synchronize(), as does
most of Indy in general.  Please show your actual code, as you are probably
just misusing it somehow.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads