Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what is the maximum capacity that indy TCP can hold ?
#3
(12-12-2018, 06:36 PM)kudzu Wrote: If you have so many concurrent connections you should be using a thread pool, not a thread for every connection.

A thread pool won't help if there are hundreds/thousands of clients connected concurrently. Indy still uses a 1-thread-per-client threading model. Pooling only helps to cache and reuse threads that are sitting idle between connections, not to allow a single thread to service multiple clients at a time. Indy does not support that. For that, you would have to use platform APIs directly to utilize non-blocking/overlapped socket operations manually.

(12-12-2018, 06:36 PM)kudzu Wrote: Indy has no limit. The limit is imposed by RAM and sometimes OS (non server OSes often have artificial TCP connection limits)

True. On the other hand, you may be able to squeeze in more threads concurrently if you lower your app's default thread stack size, for instance. Delphi's default size is 1MB per thread.

Reply


Messages In This Thread
RE: what is the maximum capacity that indy TCP can hold ? - by rlebeau - 12-12-2018, 08:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)