55c16b26b6
Implement a timeout for SSL connection setup, using -q QUITTIME, defaulting to 60 seconds. SSL_connect(3) (unlike connect(2)) doesn't timeout by default. Adapt ssl error messages destination: if unexpected error from local API, use warn()/warnx() to stderr; if expected error from a network operation (e.g., timeouts), use fprintf to ttyout (which might be stdout). Consistently use ftp_poll() instead of select(); ssl.c (using select()) was added 7 years after the previous uses of select() were converted to poll(). Check EAGAIN as well as existing EINTR error from ftp_poll(), for portability. |
||
---|---|---|
.. | ||
Makefile | ||
cmds.c | ||
cmdtab.c | ||
complete.c | ||
domacro.c | ||
extern.h | ||
fetch.c | ||
ftp.1 | ||
ftp.c | ||
ftp_var.h | ||
main.c | ||
progressbar.c | ||
progressbar.h | ||
ruserpass.c | ||
ssl.c | ||
ssl.h | ||
util.c | ||
version.h |