diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-03-16 07:10:12 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-03-16 07:10:12 +0000 |
commit | 10a543a810ac78eb5d754302b001debf9cd420c4 (patch) | |
tree | a4a4f43835bed4549007b82db516d460fc86c555 /src/core/ngx_connection.c | |
parent | 5596ede94ed311bb9d16ee11f6f68c97eb46d836 (diff) | |
download | nginx-10a543a810ac78eb5d754302b001debf9cd420c4.tar.gz nginx-10a543a810ac78eb5d754302b001debf9cd420c4.zip |
nginx-0.0.2-2004-03-16-10:10:12 import
Diffstat (limited to 'src/core/ngx_connection.c')
-rw-r--r-- | src/core/ngx_connection.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index 49eade155..a7c02c8f8 100644 --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -9,7 +9,7 @@ ngx_os_io_t ngx_io; ngx_int_t ngx_set_inherited_sockets(ngx_cycle_t *cycle) { - ngx_int_t i; + ngx_uint_t i; ngx_listening_t *ls; struct sockaddr_in *addr_in; @@ -63,7 +63,7 @@ ngx_int_t ngx_set_inherited_sockets(ngx_cycle_t *cycle) ngx_int_t ngx_open_listening_sockets(ngx_cycle_t *cycle) { - ngx_int_t tries, failed, reuseaddr, i; + ngx_uint_t tries, failed, reuseaddr, i; ngx_err_t err; ngx_log_t *log; ngx_socket_t s; @@ -78,7 +78,7 @@ ngx_int_t ngx_open_listening_sockets(ngx_cycle_t *cycle) /* TODO: tries configurable */ - for (tries = /* STUB */ 1; tries; tries--) { + for (tries = /* STUB */ 5; tries; tries--) { failed = 0; /* for each listening socket */ @@ -204,7 +204,7 @@ ngx_int_t ngx_open_listening_sockets(ngx_cycle_t *cycle) void ngx_close_listening_sockets(ngx_cycle_t *cycle) { - ngx_int_t i; + ngx_uint_t i; ngx_socket_t fd; ngx_listening_t *ls; @@ -233,7 +233,7 @@ void ngx_close_listening_sockets(ngx_cycle_t *cycle) ls[i].addr_text.data); } - cycle->connections[fd].fd = -1; + cycle->connections[fd].fd = (ngx_socket_t) -1; } } |