aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-01-30 07:28:09 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-01-30 07:28:09 +0000
commit86de4cbef5f075840406e24e16a2b1417f721bb3 (patch)
treec4af4ebbab09e3de2722107cff9b3647c0b95aca /src/http/ngx_http.c
parent1b8b119932d10d9030aa6dccd3719e5a84de33b5 (diff)
downloadnginx-86de4cbef5f075840406e24e16a2b1417f721bb3.tar.gz
nginx-86de4cbef5f075840406e24e16a2b1417f721bb3.zip
nginx-0.0.1-2003-01-30-10:28:09 import
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r--src/http/ngx_http.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c
index 56e2b5b72..5396fa2f5 100644
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1,8 +1,10 @@
#include <ngx_config.h>
+
#include <ngx_string.h>
#include <ngx_socket.h>
#include <ngx_listen.h>
+#include <ngx_inet.h>
#include <ngx_http.h>
#include <ngx_http_config.h>
#include <ngx_http_core_module.h>
@@ -324,7 +326,7 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, char *dummy)
ls->addr_text.len =
ngx_snprintf(ls->addr_text.data
+ ngx_inet_ntop(AF_INET,
- &in_addr[a].addr,
+ (char *) &in_addr[a].addr,
ls->addr_text.data,
INET_ADDRSTRLEN),
6, ":%d", in_port[p].port);
@@ -345,6 +347,7 @@ static char *ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, char *dummy)
ls->handler = ngx_http_init_connection;
ls->log = cf->log;
+ ls->pool_size = ngx_http_connection_pool_size;
ls->ctx = ctx;
ls->servers = &in_port[p];
@@ -372,7 +375,7 @@ ngx_log_debug(cf->log, "port: %d" _ in_port[p].port);
in_addr = (ngx_http_in_addr_t *) in_port[p].addr.elts;
for (a = 0; a < in_port[p].addr.nelts; a++) {
char ip[20];
- ngx_inet_ntop(AF_INET, &in_addr[a].addr, ip, 20);
+ ngx_inet_ntop(AF_INET, (char *) &in_addr[a].addr, ip, 20);
ngx_log_debug(cf->log, "%s %08x" _ ip _ in_addr[a].core_srv_conf);
}
}