diff options
author | Ruslan Ermilov <ru@nginx.com> | 2013-07-25 12:46:03 +0400 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2013-07-25 12:46:03 +0400 |
commit | 02a077b827438ae17c638efed70ee1804ce7d898 (patch) | |
tree | f93428517e227cc9b9a345a490511787cb71ab11 /src/os/unix/ngx_freebsd_config.h | |
parent | 690e2b33aa7ea56f8d7796b5412c5ef4dd89f556 (diff) | |
download | nginx-02a077b827438ae17c638efed70ee1804ce7d898.tar.gz nginx-02a077b827438ae17c638efed70ee1804ce7d898.zip |
On DragonFlyBSD, TCP_KEEPIDLE and TCP_KEEPINTVL are in msecs.
Based on a patch by Sepherosa Ziehau.
Diffstat (limited to 'src/os/unix/ngx_freebsd_config.h')
-rw-r--r-- | src/os/unix/ngx_freebsd_config.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |