W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2000

PATCH: Much improved FTP support!!

From: Peter Stamfest <peter.stamfest@eunet.at>
Date: Wed, 30 Aug 2000 00:40:06 +0200 (CEST)
To: www-lib@w3.org
Message-ID: <Pine.LNX.4.21.0008300030140.1164-200000@peter.stamf.pr.at>


This is version 2 of my FTP patch. It is a much improved version of the
patch I posted some days ago. It applies to the same version of the source
than my previous patch, so to apply this one you might have to reverse the
one I posted previously.

This version has:

1.) Proper support for persistant connections
2.) Does not use the unnecessary (because of 1.) REIN command anymore
3.) Fixes a bug that might cause the FTP code to hang libwww for small
    transfers and fast Machines on slow Networks (i.e. the internet)
    [The code could not cope with multiple return codes in one read from
    the control connection]
4.) Fixes a "racing condition" (not quite) between the events of the
    control and the data connection that causes the to-be persistant 
    connection to be closed. Fixed by using the priorities of the
    event loop mechanism.

I'm very happy with this version, and I cannot see any obvious bugs. I
was able to transfer the same small file via the same persistant
connection 650 times.... testing continues.


Peter Stamfest                    UNIX, Networking & Computing Consultant

Received on Tuesday, 29 August 2000 18:42:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:53 UTC