[Opensim-dev] HttpServer overview & RFC

Sean Dague sean at dague.net
Thu May 29 13:55:00 UTC 2008


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.

    -Sean

-- 
__________________________________________________________________

Sean Dague                                       Mid-Hudson Valley
sean at dague dot net                            Linux Users Group
http://dague.net                                 http://mhvlug.org

There is no silver bullet.  Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080529/b50b3822/attachment-0001.pgp>


More information about the Opensim-dev mailing list