libfetch ftp patch for less latency
Harrison Grundy
astrodog at gmail.com
Sat Apr 7 21:20:08 UTC 2007
Nate Lawson wrote:
> Dag-Erling Smørgrav wrote:
>
>> Nate Lawson <nate at root.org> writes:
>>
>>> Obviously, it's easier to do nothing than something. So here are some
>>> options:
>>>
>>> 1. Add my patch -- if a server returns an error, I see no way it would
>>> have changed the PWD. If you say "CD GARBAGE", what reasonable system
>>> would return an error and change to some random dir?
>>>
>>> 2. Add an env variable (similar to FTP_PASSIVE_MODE, say
>>> "FTP_SINGLE_CWD") which forces the current behavior. If not set, fetch
>>> tries the multi-method first, falls back to the single-method on error.
>>>
>> No.
>>
>> Thanks,
>>
>> DES
>>
>
> I forgot:
>
> 3. #ifdef (on or off by default)
>
> Also, can I hear from anyone else besides Mr. No?
>
> Thanks,
>
I'd be fine with this... it should be fairly easy to make sure this
won't break the oddball servers.
Worst case, you could start from scratch on a failure. (Re-initialize
the connection and all...)
This certainly makes a difference on high latency links, or slow
servers. Thanks!
--- Harrison
More information about the freebsd-current
mailing list