tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libfetch behaviour
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
As you may know, pkgin uses libfetch in order to download packages. Since
5.1 release of NetBSD, many pkgin users are facing weird issues when
downloading from FTP. These issues only appear when downloading many
packages.
The first behaviour i've noted myself is that FTP connections will stack
to the point the FTP server will stop answering. While reading libfetch's
source code my understanding was it is able to re-use an established
connection, am i wrong ? Stranger thing is that will occur even if i
explicitly "close" the connection using fetchIO_close() (which i'm not
sure what it actually does).
Second behaviour i have noted when _not_ using fetchIO_close() is that the
first download will go through, but the next connection to a FTP server
will hang forever.
Latest code for the download part is available here:
http://pkgin.cvs.sourceforge.net/viewvc/pkgin/pkgin/download.c?revision=1.3&view=markup
The real question behind this mail is: what is the "good way" to use
libfetch when downloading many items using the same connection ?
Any hint welcome...
Cheers,
- -------------------------------------------
Emile "iMil" Heitor .°. <imil%home.imil.net@localhost>
_
http://gcu-squad.org ASCII ribbon campaign ( )
- against HTML email X
& vCards / \
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (NetBSD)
iD8DBQFOPmFcFG3BlGWyzUIRAmrCAJ9sKaRvzVxpt4d+xaKDgiRvrgEjVwCfVMiA
mq5lUccK+XQ/6ZcZexNLer4=
=cfau
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index |
Old Index