<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>The general rule is that asynch stream processing is desirable, synch read-to-eof and forward is not.<BR>
 <BR>
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.<BR>
 <BR>
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.<BR>
 <BR>
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.<BR>
 <BR>
Once we had good momentum in changing this, then we got sidetracked, as always. :D<BR>
 <BR>
/Stefan<BR><BR><BR><BR><BR>

<HR id=stopSpelling>
<BR>
> Date: Fri, 16 May 2008 11:35:55 +0200<BR>> From: DrScofield@xyzzyxyzzy.net<BR>> To: opensim-dev@lists.berlios.de<BR>> Subject: [Opensim-dev] IStreamHandler vs IStreamedHandler<BR>> <BR>> trying to grok the inner beauty of BaseHttpServer i came across <BR>> IStreamHandler and IStreamedHandler.<BR>> <BR>> from the comments in BaseHttpServer ---<BR>> <BR>> // Okay, so this is bad, but should be considered <BR>> temporary until everything is IStreamHandler.<BR>> <BR>> <BR>> --- one can conclude that IStreamedHandler's days should be counted, but <BR>> there are actually very few handlers implementing IStreamHandler <BR>> (basically Inventory code makes use of it via RestDeserializedhandler) <BR>> and quite a lot (still?) implementing IStreamedHandler.<BR>> <BR>> so, question: is the intention that IStreamHandler should rule and <BR>> IStreamedHandler should go?<BR>> <BR>> cheers,<BR>> dirk<BR>> <BR>> -- <BR>> dr dirk husemann ---- virtual worlds research ---- ibm zurich research lab<BR>> SL: dr scofield ---- drscofield@xyzzyxyzzy.net ---- http://xyzzyxyzzy.net/<BR>> RL: hud@zurich.ibm.com - +41 44 724 8573 - http://www.zurich.ibm.com/~hud/<BR>> <BR>> _______________________________________________<BR>> Opensim-dev mailing list<BR>> Opensim-dev@lists.berlios.de<BR>> https://lists.berlios.de/mailman/listinfo/opensim-dev<BR><BR></body>
</html>