Re: ftp(1) connection timeouts and hostnames with multiple addresses

2022-09-13 Thread Stuart Henderson
On 2022/09/13 13:25, Todd C. Miller wrote: > On Tue, 13 Sep 2022 20:21:58 +0100, Stuart Henderson wrote: > > > Oh great, that works very nicely for this use case, thank you. Connecting > > via a proxy also still works as I'd expect. I'm basically OK with that > > diff though I'd like to test the

Re: ftp(1) connection timeouts and hostnames with multiple addresses

2022-09-13 Thread Todd C . Miller
On Tue, 13 Sep 2022 20:21:58 +0100, Stuart Henderson wrote: > Oh great, that works very nicely for this use case, thank you. Connecting > via a proxy also still works as I'd expect. I'm basically OK with that > diff though I'd like to test the installer (I have some mkb/mkr running > now).

Re: ftp(1) connection timeouts and hostnames with multiple addresses

2022-09-13 Thread Stuart Henderson
On 2022/09/13 10:57, Todd C. Miller wrote: > On Sat, 09 Jul 2022 12:53:17 +0100, Stuart Henderson wrote: > > > I'm trying to teach ftp(1) to do something like gui web browsers do > > and reduce the HTTP/HTTPS connection timeout from the default (75 seconds) > > if there are multiple addresses

Re: ftp(1) connection timeouts and hostnames with multiple addresses

2022-09-13 Thread Todd C . Miller
On Sat, 09 Jul 2022 12:53:17 +0100, Stuart Henderson wrote: > I'm trying to teach ftp(1) to do something like gui web browsers do > and reduce the HTTP/HTTPS connection timeout from the default (75 seconds) > if there are multiple addresses behind a hostname. > > There's an existing connection

Re: ftp(1) connection timeouts and hostnames with multiple addresses

2022-07-09 Thread Todd C . Miller
Instead of the existing alarm() mechanism, how about using timeout_connect() from usr.bin/nc/netcat.c? - todd