[Opensim-dev] IStreamHandler vs IStreamedHandler

Stefan Andersson stefan at tribalmedia.se
Fri May 16 09:55:35 UTC 2008


The general rule is that asynch stream processing is desirable, synch read-to-eof and forward is not.
 
All this 'synchrounously read until eof, then write the whole chunk' in every step along the way is probably causing severe and unpredictable lag in the system.
 
Things are somewhat complicated by the fact that some constructs (like the REST handler, I believe) actually returns a string, which is fucked. It should be up to the handler to decide what content type it will return, and consequently, how it will be written to the response stream.
 
Also, if we're going to upload other things than text, then the REST handler is probably just a StreamHandler, possibly subclassed into an XmlHandler, AssetHandler, et c perhaps? I know there's a Binary handler in there somewhere.
 
Once we had good momentum in changing this, then we got sidetracked, as always. :D
 
/Stefan



> Date: Fri, 16 May 2008 11:35:55 +0200> From: DrScofield at xyzzyxyzzy.net> To: opensim-dev at lists.berlios.de> Subject: [Opensim-dev] IStreamHandler vs IStreamedHandler> > trying to grok the inner beauty of BaseHttpServer i came across > IStreamHandler and IStreamedHandler.> > from the comments in BaseHttpServer ---> > // Okay, so this is bad, but should be considered > temporary until everything is IStreamHandler.> > > --- one can conclude that IStreamedHandler's days should be counted, but > there are actually very few handlers implementing IStreamHandler > (basically Inventory code makes use of it via RestDeserializedhandler) > and quite a lot (still?) implementing IStreamedHandler.> > so, question: is the intention that IStreamHandler should rule and > IStreamedHandler should go?> > cheers,> dirk> > -- > 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/> > _______________________________________________> Opensim-dev mailing list> Opensim-dev at lists.berlios.de> https://lists.berlios.de/mailman/listinfo/opensim-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080516/db5cbb7f/attachment-0001.html>


More information about the Opensim-dev mailing list