Karl Guertin a écrit :
> On 6/22/06, Bram Vandoren <[EMAIL PROTECTED]> wrote:
>
>> Is Turbogears suitable for
>> this kind of application or is it better to use Twisted?
>>
>
> Turbogears uses CherryPy which dispatches a thread for every
> connection rather than doing async io like Twisted. This makes it
> unsuitable for handling large numbers of long lived http connections.
> If I'm wrong on this, Robert will undoubtedly correct me. ;]
>
>
It's almost true.
CherryPy creates a set of threads at startup and then each thread
handles one connection at a time. Connections being queued when they
arrive by a dedicated thread. That's why I say "almost true" as your
statement led to believe CP would fire up a new thread per incoming
connection which of course would be very inefficient.
I'm sure you knew that but I wanted to clarify :)
- Sylvain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---