Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Mar : Re: [EQ] how can i manage different connection speed ?

www.cryer.info
Managed Newsgroup Archive

Re: [EQ] how can i manage different connection speed ?

Subject:Re: [EQ] how can i manage different connection speed ?
Posted by:"Ahmadi" (ahmadisolness..@yahoo.com)
Date:Fri, 7 Mar 2008 02:05:17 +0430

>why you are doing all of your writing in a single thread?  That is a huge
>bottleneck, especially as your client count increases.Since TIdTCPServer is
>already multi-threaded to begin with, you should consider letting those
>existing threads do the writing for you, on a per-client basis.
Yes, its bad.
To solving the problem:
If i use multi threads for writing (one thread per one client) without any
delay between writing.Its usual that one thread hang while running itself
writeBuffer command. and if i understand, you mean that the thread will be
return after a time (that OS determine it).and after returning, it will be
continue itself writing(i must don't warry about it's hang).
Is it true? or im not understand truly :)
Thanks for your attention.

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive