diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-03-09 17:28:46 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-03-09 17:28:46 +0000 |
commit | 0e0d6a804239933f10ee0746fd97d09905f92e96 (patch) | |
tree | 86038c8f2f60767ac76f8d6fb5e7e7bbd327f615 /usr.bin/ncftp/ftp.c | |
parent | b3e8cc7812a51644136c53e23f80ae66b569c760 (diff) |
Notes
Diffstat (limited to 'usr.bin/ncftp/ftp.c')
-rw-r--r-- | usr.bin/ncftp/ftp.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.bin/ncftp/ftp.c b/usr.bin/ncftp/ftp.c index 4cb8d8de967c8..c90aafeb69b85 100644 --- a/usr.bin/ncftp/ftp.c +++ b/usr.bin/ncftp/ftp.c @@ -1737,6 +1737,19 @@ int initconn(void) rval = 1; goto Return; } +#ifdef LINGER /* If puts don't complete, you could try this. */ + { + struct linger li; + li.l_onoff = 1; + li.l_linger = 900; + + if (setsockopt(data, SOL_SOCKET, SO_LINGER, + (char *)&li, sizeof(struct linger)) < 0) + { + PERROR("initconn", "setsockopt(SO_LINGER)"); + } + } +#endif /* LINGER */ if (options & SO_DEBUG && setsockopt(data, SOL_SOCKET, SO_DEBUG, (char *)&on, sizeof(on)) < 0 ) { PERROR("initconn", "setscokopt (ignored)"); |