Here's why I did things the way I did.

1)  Users get impatient if they don't see anything happening and give up when 
the SplitFile is successfully downloading / decoding. That's the reason I put 
the UI in in the first place.

2)  Initiating a FEC download takes significant resources.  By default 5 
threads are spawned for each request.  Imagine what would happen to poor fred 
if you were to point fproxy at a page with 20 FEC encoded images.
We could do stuff to fix this.  i.e. setting a maximum thread limit for all 
FEC requests together, writing request components that are capable of 
prioritizing requests, etc.  I am actively working on these issues but not 
for before code freeze.

There is an fproxy parameter that allows you to turn off the downloading UI 
completely or set the minimum size (default 0) for which it is used.
I haven't tested this code path in over a year, but you are welcome to play 
with it.

// The SplitFile UI isn't displayed for SplitFiles
// smaller than this. Set to 0 to enable the UI
// on all files.
splitFileUIMinSize

// Add a line like this to freenet.conf/ini
mainport.params.servlet.1.params.splitFileUIMinSize=1048576    

Also, fproxy should allow you to turn the ui off on a per request basis with 
the ?useUI=0 argument.  I haven't tested that in a long time either.
I put it in for people who wanted to do apt-get like stuff via fproxy.

I think it would cause the anonimity filter to trip. (which is probably a 
good idea.  I would consider it a DOS attack if some freesite author tricks 
my browser into loading  their ISO every time I look at their page.)

--gj

On Tuesday 22 October 2002 22:10, you wrote:
> The Freenet Gallery model of inlining the full images and having the
> browser scale them down to thumbnails <img src="blah.jpg" width=50
> height=50> means that we will be seeing inlined images large enough to
> be split.  (take a look at
> SSK at Zk3lWHDM6VzA5k4nZWOq5xPl1rkPAgM/FreenetGallery/1//Boccioni_Umberto.html
> to see what i'm talking about) ... for instance, I am working on setting
> up a high quality image gallery where the images are all between 500k
> and 1.5megs.
>
> -Josh
>
> Ian Clarke wrote:
> >On Wed, Oct 23, 2002 at 12:03:43AM +0100, Matthew Toseland wrote:
> >>Now that splitfile downloading is a bit more mature, does it make sense
> >>to turn the UI off by default? This would allow inline splitfile images
> >>to work..
> >
> >Is it really necessary to split inline images?  Most will be pretty
> >small.
> >
> >Perhaps we could create a splitfile status infolet which the user could
> >keep open in a separate window or something.  Anyway, this is 0.5.1
> >stuff.
> >
> >Ian.

_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to