Use non-blocking connect() with ppoll() and timeout instead of alarm().
authormillert <millert@openbsd.org>
Thu, 15 Sep 2022 12:47:10 +0000 (12:47 +0000)
committermillert <millert@openbsd.org>
Thu, 15 Sep 2022 12:47:10 +0000 (12:47 +0000)
commitf37faed6bf7abab250c71352d8ea4cc484e8b57c
tree8fb2aa1f77f5c39b748bb23a5669d1c22efa7e3d
parent5f095273525d36c3ec49684f8a198a95ee33b65f
Use non-blocking connect() with ppoll() and timeout instead of alarm().
For hosts with multiple IP addrs this makes it possible to fall
over from an unresponsive IP to another.  This also replaces the
other connect(2) + connect_wait() calls with timed_connect() so the
-w option now works for more that just http.  OK sthen@ deraadt@
usr.bin/ftp/extern.h
usr.bin/ftp/fetch.c
usr.bin/ftp/ftp.1
usr.bin/ftp/ftp.c
usr.bin/ftp/util.c