Add a configuration option for TCP keepalives (SO_KEEPALIVE), default off.
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 20 Jun 2004 17:07:38 +0000 (17:07 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sun, 20 Jun 2004 17:07:38 +0000 (17:07 +0000)
commit79bf227ba7ba02e32ac710621b672e2789f9ef50
treee287e4f6a78c32c095c1b511d644b8487cc2488c
parent01fe3d80cb9ebc8eefa8003cc852ec469fd87b24
Add a configuration option for TCP keepalives (SO_KEEPALIVE), default off.
No very good reason, but I've occasionally wanted to frob it to see if it
makes any difference to problems I'm having, and it was easy.

Tested that it does actually cause keepalives on Windows (with tcpdump);
should also work on Unix. Not implemented on Mac (does nothing), but then
neither is TCP_NODELAY.

Quite a big checkin, much of which is adding `keepalive' alongside `nodelay'
in network function calls.

git-svn-id: svn://svn.tartarus.org/sgt/putty@4309 cda61777-01e9-0310-a592-d414129be87e
29 files changed:
config.c
doc/config.but
mac/macnet.c
mac/macterm.c
mac/mtcpnet.c
mac/otnet.c
network.h
plink.c
portfwd.c
pproxy.c
proxy.c
psftp.c
putty.h
raw.c
rlogin.c
scp.c
settings.c
ssh.c
telnet.c
testback.c
unix/pterm.c
unix/pty.c
unix/uxnet.c
unix/uxplink.c
unix/uxproxy.c
window.c
winhelp.h
winnet.c
x11fwd.c