]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commitdiff
On DragonFly BSD 5.8+, TCP_KEEPIDLE and TCP_KEEPINTVL are in secs.
authorAndy Pan <i@andypan.me>
Tue, 15 Oct 2024 09:20:20 +0000 (17:20 +0800)
committerpluknet <pluknet@nginx.com>
Mon, 18 Nov 2024 20:30:47 +0000 (00:30 +0400)
src/os/unix/ngx_freebsd_config.h

index c641108b705e30a9a6ce20819d3b82b88108d53e..815342974543cad82bfd72ed027d21cd1e9e6e21 100644 (file)
@@ -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