add library support for tuning TCP_KEEPALIVE
authorDave Reisner <dreisner@archlinux.org>
Tue, 24 Jan 2012 01:28:06 +0000 (01:28 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Feb 2012 17:53:51 +0000 (18:53 +0100)
commit705f0f7a5b6120bb783d139c9266b285a4c8acd8
tree25e53650101274f8f178cd7f2468ee2fe4f3da28
parentea055407fa45c4247042e7370d463364f03c3136
add library support for tuning TCP_KEEPALIVE

This adds three new options to control the behavior of TCP keepalives:

- CURLOPT_TCP_KEEPALIVE: enable/disable probes
- CURLOPT_TCP_KEEPIDLE: idle time before sending first probe
- CURLOPT_TCP_KEEPINTVL: delay between successive probes

While not all operating systems support the TCP_KEEPIDLE and
TCP_KEEPINTVL knobs, the library will still allow these options to be
set by clients, silently ignoring the values.
docs/libcurl/curl_easy_setopt.3
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/connect.c
lib/url.c
lib/urldata.h