summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2012-03-16 19:15:33 +0000
committerRuslan Ermilov <ru@nginx.com>2012-03-16 19:15:33 +0000
commit926ded6f4c3e7d7fe15c448f202387e07c28bf03 (patch)
treee3a5496572ff7c27ddb7674481e04ce0dd18dadf /auto
parentc2afb66e8885d9740ae5b7ade421d1522219551b (diff)
downloadnginx-926ded6f4c3e7d7fe15c448f202387e07c28bf03.tar.gz
nginx-926ded6f4c3e7d7fe15c448f202387e07c28bf03.tar.bz2
Implemented $tcpinfo_rtt, $tcpinfo_rttvar, $tcpinfo_snd_cwnd, and
$tcpinfo_rcv_space variables. Supported on Linux and FreeBSD.
Diffstat (limited to 'auto')
-rwxr-xr-xauto/unix13
1 files changed, 13 insertions, 0 deletions
diff --git a/auto/unix b/auto/unix
index 88b2cbee7..7a8b6ec3d 100755
--- a/auto/unix
+++ b/auto/unix
@@ -343,6 +343,19 @@ ngx_feature_test="setsockopt(0, IPPROTO_TCP, TCP_KEEPIDLE, NULL, 0);
. auto/feature
+ngx_feature="TCP_INFO"
+ngx_feature_name="NGX_HAVE_TCP_INFO"
+ngx_feature_run=no
+ngx_feature_incs="#include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <netinet/tcp.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="socklen_t optlen = sizeof(struct tcp_info);
+ getsockopt(0, IPPROTO_TCP, TCP_INFO, NULL, &optlen)"
+. auto/feature
+
+
ngx_feature="accept4()"
ngx_feature_name="NGX_HAVE_ACCEPT4"
ngx_feature_run=no