Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Connection Pool with TIdTCPServer
| Subject: | Connection Pool with TIdTCPServer |
| Posted by: | "Gerhard Venter" (ieatspam4breakfast@spam.com) |
| Date: | Wed, 28 Jun 2006 13:23:47 |
I am looking for ideas using TIdTCPServer that utilizes a connection pool of
TIdTCPClients.
I have a TIdTCPServer that accepts connections from TIdTCPClients. So far
easy but the TIdTCPServer acts kind of like a proxy server thus it has a
pool of "its own" TIdTCPClients. When a request comes in from a client the
server grabs a connection from the pool and request something else from
another server and then sends a result back to the client. 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.
What will be a good approach on this?