| static ngx_command_t ngx_http_status_commands[] = { |
| ngx_http_module_t ngx_http_status_module_ctx = { |
| NULL, /* create main configuration */ |
| NULL, /* init main configuration */ |
| NULL, /* create server configuration */ |
| NULL, /* merge server configuration */ |
| ngx_http_status_create_loc_conf, /* create location configration */ |
| ngx_http_status_merge_loc_conf /* merge location configration */ |
| ngx_module_t ngx_http_status_module = { |
| &ngx_http_status_module_ctx, /* module context */ |
| ngx_http_status_commands, /* module directives */ |
| NGX_HTTP_MODULE, /* module type */ |
| ngx_http_status_init, /* init module */ |
| static char http_states = "IRPCUWLK"; |
| int ngx_http_status_handler(ngx_http_request_t *r) |
| c = ngx_cycle->connections; |
| for (i = 0; i < ngx_cycle->connection_n; i++) { |
| if (c[i].module != http || c[i].data == NULL) { |
| if (c[i].data == NULL && c[i].fd != -1) { |