The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,842 other followers

delphi – Building Multi threaded TCP/IP Server – Stack Overflow

Posted by jpluimers on 2016/07/21

On the research list: TIdSchedulerOfThreadPool (now that TIdThreadMgrPool is gone).

Need to manage the lifetime of these as I don’t want the threads to live forever, but also don’t want to make the instantiation cost too high.

Most likely I want to wait for them to finish as well upon process exit, so this might be worth a look as well:

–jeroen

Source: delphi – Building Multi threaded TCP/IP Server – Stack Overflow

4 Responses to “delphi – Building Multi threaded TCP/IP Server – Stack Overflow”

  1. Ooh, I’ve got IOCP on the to-do list for so long for xxmHttp http://yoy.be/xxm/ but the version I currently have, doesn’t use Indy, does re-use threads (and re-uses sockets) with a limited thread pool (and queues requests if the pool is fully in use)

  2. On Windows Server, the most performant/scalable server technique is to use asynchronous sockets with an IOCP/thread pool (ie. not Indy and its blocking sockets).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: