mirror of
https://github.com/nginx/nginx.git
synced 2025-06-28 02:02:50 +08:00
nginx-0.0.1-2003-11-04-20:09:19 import
This commit is contained in:
parent
cf80a70e10
commit
f60b1a5cd9
@ -811,7 +811,7 @@ char *ngx_conf_check_num_bounds(ngx_conf_t *cf, void *post, void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
||||||
"value must be more than %d", bounds->low);
|
"value must be equal or more than %d", bounds->low);
|
||||||
|
|
||||||
return NGX_CONF_ERROR;
|
return NGX_CONF_ERROR;
|
||||||
}
|
}
|
||||||
|
27
src/http/ngx_http_busy_lock.h
Normal file
27
src/http/ngx_http_busy_lock.h
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#ifndef _NGX_HTTP_BUSY_LOCK_H_INCLUDED_
|
||||||
|
#define _NGX_HTTP_BUSY_LOCK_H_INCLUDED_
|
||||||
|
|
||||||
|
|
||||||
|
#include <ngx_config.h>
|
||||||
|
#include <ngx_core.h>
|
||||||
|
#include <ngx_http.h>
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
char *busy;
|
||||||
|
int busy_n;
|
||||||
|
|
||||||
|
int waiting_n;
|
||||||
|
int max_waiting;
|
||||||
|
|
||||||
|
int conn_n;
|
||||||
|
int max_conn;
|
||||||
|
|
||||||
|
int timeout;
|
||||||
|
|
||||||
|
/* ngx_mutex_t mutex; */
|
||||||
|
|
||||||
|
} ngx_http_busy_lock_t;
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _NGX_HTTP_BUSY_LOCK_H_INCLUDED_ */
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
#include <ngx_config.h>
|
#include <ngx_config.h>
|
||||||
#include <ngx_core.h>
|
#include <ngx_core.h>
|
||||||
|
#include <ngx_http.h>
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user