Re: Threads increasing in a Http server using TIdHttpServer

Giganews Newsgroups
Subject: Re: Threads increasing in a Http server using TIdHttpServer
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Wed, 19 Dec 2007

"Thomas Bergerot" <nospam@nospam.fr> wrote in message
news:AE8C47767241E340nospam@nospam.fr...

> I have a server using TIdHttpServer

Which version of Indy are you using?

> KeepAlive is false (server side), but could be true on client side.

HTTP keep-alives are negotiated between the client and server.  The client
can request them to be used, but the server has to agree to it or reject it.
If the server does not have Keep-alives enabled on its end, it won't matter
if they are enabled on the client end.  The server will close each
connection on its end, forcing the client to close them on its end between
each request.

> It looks like some of the threads are not killed.

You are probably deadlocking the threads in your event handlers.  Please
show your actual code.

Gambit

Replies

In response to

Threads increasing in a Http server using TIdHttpServer posted by Thomas Bergerot on Wed, 19 Dec 2007