From 02a077b827438ae17c638efed70ee1804ce7d898 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 25 Jul 2013 12:46:03 +0400 Subject: On DragonFlyBSD, TCP_KEEPIDLE and TCP_KEEPINTVL are in msecs. Based on a patch by Sepherosa Ziehau. --- src/os/unix/ngx_freebsd_config.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/os') diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h index 5b3ff278c..248e7a731 100644 --- a/src/os/unix/ngx_freebsd_config.h +++ b/src/os/unix/ngx_freebsd_config.h @@ -94,6 +94,11 @@ typedef struct aiocb ngx_aiocb_t; #define NGX_LISTEN_BACKLOG -1 +#ifdef __DragonFly__ +#define NGX_KEEPALIVE_FACTOR 1000 +#endif + + #if (__FreeBSD_version < 430000 || __FreeBSD_version < 500012) pid_t rfork_thread(int flags, void *stack, int (*func)(void *arg), void *arg); -- cgit