nginx-0.0.1-2003-01-30-21:21:39 import
diff --git a/src/core/nginx.c b/src/core/nginx.c index 5652e41..3133f87 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c
@@ -52,11 +52,12 @@ ngx_pool = ngx_create_pool(16 * 1024, &ngx_log); /* */ -#if !(WIN32) +#if (WIN32) + ngx_init_sockets(&ngx_log); +#else ngx_set_signals(&ngx_log); #endif - ngx_init_sockets(&ngx_log); ngx_init_array(ngx_listening_sockets, ngx_pool, 10, sizeof(ngx_listen_t), 1);
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h index 719781e..ca2d5c1 100644 --- a/src/http/ngx_http.h +++ b/src/http/ngx_http.h
@@ -245,6 +245,9 @@ int ngx_http_discard_body(ngx_http_request_t *r); +int ngx_http_special_response(ngx_http_request_t *r, int error); + + extern int ngx_max_module; extern ngx_array_t ngx_http_servers;
diff --git a/src/http/ngx_http_core_module.h b/src/http/ngx_http_core_module.h index 522cb25..c4d15ca 100644 --- a/src/http/ngx_http_core_module.h +++ b/src/http/ngx_http_core_module.h
@@ -85,6 +85,8 @@ int ngx_http_core_translate_handler(ngx_http_request_t *r); +int ngx_http_error(ngx_http_request_t *r, int error); +int ngx_http_close_request(ngx_http_request_t *r); #endif /* _NGX_HTTP_CORE_H_INCLUDED_ */
diff --git a/src/os/unix/ngx_socket.h b/src/os/unix/ngx_socket.h index 2a602d2..b4be762 100644 --- a/src/os/unix/ngx_socket.h +++ b/src/os/unix/ngx_socket.h
@@ -8,8 +8,6 @@ typedef int ngx_socket_t; -#define ngx_init_sockets - #define ngx_socket(af, type, proto, flags) socket(af, type, proto) #define ngx_socket_n "socket()"