summaryrefslogtreecommitdiffhomepage
path: root/src/stream/ngx_stream.h
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2015-06-18 14:17:30 +0300
committerVladimir Homutov <vl@nginx.com>2015-06-18 14:17:30 +0300
commit14ff3d4f87c049ff4446efe067fbfe85d5ae18ab (patch)
tree8c07a252f1cff7d6ce105bde379e03a38d146949 /src/stream/ngx_stream.h
parentf470cd2b893379312c89f3265d3f1cca499929e8 (diff)
downloadnginx-14ff3d4f87c049ff4446efe067fbfe85d5ae18ab.tar.gz
nginx-14ff3d4f87c049ff4446efe067fbfe85d5ae18ab.tar.bz2
Stream: connection limiting module.
stream { limit_conn_zone $binary_remote_addr zone=perip:1m; limit_conn_log_level error; server { ... limit_conn perip 1; } }
Diffstat (limited to 'src/stream/ngx_stream.h')
-rw-r--r--src/stream/ngx_stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stream/ngx_stream.h b/src/stream/ngx_stream.h
index b0eb7d4e5..266101c9c 100644
--- a/src/stream/ngx_stream.h
+++ b/src/stream/ngx_stream.h
@@ -118,6 +118,7 @@ typedef ngx_int_t (*ngx_stream_access_pt)(ngx_stream_session_t *s);
typedef struct {
ngx_array_t servers; /* ngx_stream_core_srv_conf_t */
ngx_array_t listen; /* ngx_stream_listen_t */
+ ngx_stream_access_pt limit_conn_handler;
ngx_stream_access_pt access_handler;
} ngx_stream_core_main_conf_t;