On Tue, Apr 03, 2001 at 06:47:22PM +0200, Stefan Reich wrote:
> >How does you verification work BTW? Do you download the whole key or
> >abort the second something comes through?
> 
> Currently I'm doing it the simple & stupid way - URLConnection to fproxy. I
> will change this to use the official library.
> 
> fxproy always retrieves the whole file, even though I close the connection
> after 10.000 bytes. Does anyone know if the library behaves differently?
> This would speed up key verification a lot.

You could with libfreenet Use the freenet_request_buffer function to
request the keys and set the buffer size to 0 bytes. It'll abort with
the FNS_BUFFER_TOO_SMALL error code the second it finds that the size
of the file is too big.

However last time GJ tried the same thing the routing got screwed up
for a few days every time he verified a big pile of keys... He aborted
early too... Maybe aborting early screws things up?

-- 
GCS d s+:-- a--- C++++ UL++++ P L+++ E W++ N- o K- w-- O- M 
V- PS+ PE+ Y+ PGP+++ t 5 X R+ tv-- b+ DI+ D++ G e- h! r-- y--
pete at petertodd.ca http://retep.tripod.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20010403/78473da9/attachment-0001.pgp>

Reply via email to