diff options
author | 2007-06-16 08:58:33 +0000 | |
---|---|---|
committer | 2007-06-16 08:58:33 +0000 | |
commit | d4affc8b42f03ef6bf49d7ef04c0cfd8482a8099 (patch) | |
tree | 8e4e180e64c63d8406e2f96bfb0a10c2af708b80 /usr.bin/ftp/extern.h | |
parent | Enable iophy(4) for fxp(4). From brad. (diff) | |
download | wireguard-openbsd-d4affc8b42f03ef6bf49d7ef04c0cfd8482a8099.tar.xz wireguard-openbsd-d4affc8b42f03ef6bf49d7ef04c0cfd8482a8099.zip |
implement a `keep-alive' option that sends bytes over an inactive
connection. The FTP protocol provides us with a NOOP operation that
is perfectly suitable for that, and so far servers are happy with it.
Sending the command slowly is an idea I borrowed from spamd.
No change for people not using the option, so it can't break normal ftp.
okay beck@, jmc@
Diffstat (limited to 'usr.bin/ftp/extern.h')
-rw-r--r-- | usr.bin/ftp/extern.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ftp/extern.h b/usr.bin/ftp/extern.h index 864913387d6..8fefe122e5b 100644 --- a/usr.bin/ftp/extern.h +++ b/usr.bin/ftp/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.30 2007/06/13 13:52:26 pyr Exp $ */ +/* $OpenBSD: extern.h,v 1.31 2007/06/16 08:58:33 espie Exp $ */ /* $NetBSD: extern.h,v 1.17 1997/08/18 10:20:19 lukem Exp $ */ /* @@ -208,6 +208,7 @@ extern int proxy; extern char reply_string[]; extern off_t restart_point; extern int NCMDS; +extern int keep_alive_timeout; extern char *__progname; /* from crt0.o */ |