summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nginx/src/core
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2014-03-11 15:06:22 +0000
committerrobert <robert@openbsd.org>2014-03-11 15:06:22 +0000
commit2c0dea59a8888833933c9c5ce851b4e6683c29d8 (patch)
treeff27adeccd04e93621201fd5e6b79cc69d4a0015 /usr.sbin/nginx/src/core
parentDon't bitch about binding into stolen memory on older hardware either. (diff)
downloadwireguard-openbsd-2c0dea59a8888833933c9c5ce851b4e6683c29d8.tar.xz
wireguard-openbsd-2c0dea59a8888833933c9c5ce851b4e6683c29d8.zip
bugfix update to 1.4.6
Diffstat (limited to 'usr.sbin/nginx/src/core')
-rw-r--r--usr.sbin/nginx/src/core/nginx.h4
-rw-r--r--usr.sbin/nginx/src/core/ngx_connection.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/usr.sbin/nginx/src/core/nginx.h b/usr.sbin/nginx/src/core/nginx.h
index 609bdaa89d5..227e5f73568 100644
--- a/usr.sbin/nginx/src/core/nginx.h
+++ b/usr.sbin/nginx/src/core/nginx.h
@@ -9,8 +9,8 @@
#define _NGINX_H_INCLUDED_
-#define nginx_version 1004004
-#define NGINX_VERSION "1.4.4"
+#define nginx_version 1004006
+#define NGINX_VERSION "1.4.6"
#define NGINX_VER "nginx/" NGINX_VERSION
#define NGINX_VAR "NGINX"
diff --git a/usr.sbin/nginx/src/core/ngx_connection.c b/usr.sbin/nginx/src/core/ngx_connection.c
index 7ed781e0add..986bf0d0208 100644
--- a/usr.sbin/nginx/src/core/ngx_connection.c
+++ b/usr.sbin/nginx/src/core/ngx_connection.c
@@ -647,7 +647,13 @@ ngx_configure_listening_sockets(ngx_cycle_t *cycle)
if (ls[i].add_deferred || ls[i].delete_deferred) {
if (ls[i].add_deferred) {
- timeout = (int) (ls[i].post_accept_timeout / 1000);
+ /*
+ * There is no way to find out how long a connection was
+ * in queue (and a connection may bypass deferred queue at all
+ * if syncookies were used), hence we use 1 second timeout
+ * here.
+ */
+ timeout = 1;
} else {
timeout = 0;