aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Pan <i@andypan.me>2024-10-15 17:20:20 +0800
committerpluknet <pluknet@nginx.com>2024-11-19 00:30:47 +0400
commit7cd60cd475901016bf3e8b22b7394b136b80a0c8 (patch)
tree4d579e8e937f272ee8e486d8c3140d29c0a01ed7
parent36ca44f26f9e5658e880399c95969cca507dfd69 (diff)
downloadnginx-7cd60cd475901016bf3e8b22b7394b136b80a0c8.tar.gz
nginx-7cd60cd475901016bf3e8b22b7394b136b80a0c8.zip
On DragonFly BSD 5.8+, TCP_KEEPIDLE and TCP_KEEPINTVL are in secs.
-rw-r--r--src/os/unix/ngx_freebsd_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h
index c641108b7..815342974 100644
--- a/src/os/unix/ngx_freebsd_config.h
+++ b/src/os/unix/ngx_freebsd_config.h
@@ -103,7 +103,7 @@ typedef struct aiocb ngx_aiocb_t;
#define NGX_LISTEN_BACKLOG -1
-#ifdef __DragonFly__
+#if (defined __DragonFly__ && __DragonFly_version < 500702)
#define NGX_KEEPALIVE_FACTOR 1000
#endif