I did some work today that should clean up some of the problems people are
having with the node.

a) I added File buffering to the tunneling of the data fields. It simply writes
and reads to a file at the same time, which turned out to be a lot simpler then
I had thought it would be. This means you should now be able to insert to a
local node at local speeds without having to worry about where the data goes
next. Please test this.

b) I took this oppertunity to clean up the caching a little bit. It will now
only cache a file in the DataStore when it has the whole file, so no more
broken uploads ending up on the network.

c) Someone said the counter thing didn't belong in the conduit class, so I had a
look and agreed. It is not there anymore, instead I wrote a CounterOutputStream
that can be hooked on to the datatunnel count how much is streamed. I updated
the clients for this. It borked the client interface a little, so I also fixed
the FGUI thing (I couldn't get the progress bar to draw right on Inserts though,
but I didn't touch any of that so I don't know why - sorry if I screwed
something up for you guys).

d) I caught a problem with a race condition in the ConnectionHandler that
causing it to hang after reading a trailing field. I think this may have been
the reason for nodes picking up so many threads and connections. Hopefully
things will work better now.

-- 

Oskar Sandberg

md98-osa at nada.kth.se

#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to