Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: Connection Pool with TIdTCPServer

www.cryer.info
Managed Newsgroup Archive

Re: Connection Pool with TIdTCPServer

Subject:Re: Connection Pool with TIdTCPServer
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Wed, 28 Jun 2006 15:16:51

"Gerhard Venter" <IeatSpam4breakfast@spam.com> wrote in message
news:44a2e553$1@newsgroups.borland.com...

> Well sometimes the responses are getting mixed up. Connection1
> will get Connection2's response and vice versa. This only happens
> if I really hammer the server.

Sounds like you are not managing the connections properly.  What does your
actual code look like?  Are you adequately protecting your pool from
providing the same outbound connection to multiple server threads?  Are you
associating the outbound connection with each thread, such as via the
TIdPeerThread.Data (Indy 9) or TIdContext.Data (Indy 10) property, so that
each inbound connection knows exactly which outbound connection to access?


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive