libfetch ftp patch for less latency

Peter Jeremy peterjeremy at optushome.com.au
Thu Mar 29 19:16:22 UTC 2007


On 2007-Mar-29 20:30:26 +0200, Dag-Erling Smrgrav <des at des.no> wrote:
>Libfetch used to do what Nate suggests, and it was changed to the
>current behaviour because we encountered servers in the field with
>which it didn't work.

At first glance, the current behaviour does seem unnecessary and
Nate's patch seems an "obvious" improvement.  Having a comment near
_ftp_cwd() explaining the current behaviour and why it isn't possible
to pass a pathname to CWD would have saved Nate some effort and
removed the need for this thread.

Sometimes, it is as important to document why an alternative algorithm
was not chosen as it is to document what the code is doing.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070329/101ab930/attachment.pgp


More information about the freebsd-current mailing list