[Opensim-dev] HttpServer overview & RFC

Dr Scofield DrScofield at xyzzyxyzzy.net
Thu May 29 15:09:07 UTC 2008


Sean Dague wrote:
> On Thu, May 29, 2008 at 11:16:32AM +0200, Stefan Andersson wrote:
>   
>> To me it sounds like 'Handled' is the flush-and-end helper function to 'Detached'?
>> I guess the best example is the "long poll" of the LL http polling queue, where every request is specified to be 'held' for a time interval, so that the server can add events over a time.
>>  
>> And, on that note : one of the problems we see and will see even more, is that http requests that are taken from the thread pool helps to exhaust the pool.
>>  
>> If we had some declarative way of stating 'this handler has the
>> potential to be long running' meaning it will get a new thread
>> allocated, that would probably be a good idea.
>>     
>
> Honestly, the thread approach is probably completely wrong for the long
> poll.  Ideally we'd do this in a select loop manner that lets us have a
> single execution thread manage all the open sockets, and can dispatch
> into work queues.  It would let us handle high load situations a lot
> better.
>   
even with select() you need to have threads driving the work queues --- 
there are just too many places where handlers on the work queue can 
block. the pumps are basically driving the work queues.

    cheers,
    dr scofield


-- 
dr dirk husemann ---- virtual worlds research ---- ibm zurich research lab
SL: dr scofield ---- drscofield at xyzzyxyzzy.net ---- http://xyzzyxyzzy.net/
RL: hud at zurich.ibm.com - +41 44 724 8573 - http://www.zurich.ibm.com/~hud/




More information about the Opensim-dev mailing list