Mercurial > hg > ngx_http_upstream_keepalive
diff ngx_http_upstream_keepalive_module.c @ 5:e7d1b49e0611
Keepalive: style.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 23 Oct 2008 19:18:36 +0400 |
parents | e18e4613b841 |
children | bef88ba0b378 |
line wrap: on
line diff
--- a/ngx_http_upstream_keepalive_module.c +++ b/ngx_http_upstream_keepalive_module.c @@ -8,11 +8,13 @@ #include <ngx_core.h> #include <ngx_http.h> + typedef struct { ngx_queue_t queue; ngx_connection_t *connection; } ngx_http_upstream_keepalive_cache_t; + typedef struct { ngx_uint_t max_cached; @@ -24,6 +26,7 @@ typedef struct { } ngx_http_upstream_keepalive_srv_conf_t; + typedef struct { ngx_http_upstream_keepalive_srv_conf_t *conf; @@ -45,7 +48,6 @@ static void ngx_http_upstream_free_keepa static void ngx_http_upstream_keepalive_dummy_handler(ngx_event_t *ev); static void ngx_http_upstream_keepalive_close_handler(ngx_event_t *ev); - static void *ngx_http_upstream_keepalive_create_conf(ngx_conf_t *cf); static char *ngx_http_upstream_keepalive(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); @@ -178,7 +180,7 @@ ngx_http_upstream_get_keepalive_peer(ngx ngx_http_upstream_keepalive_cache_t *item; ngx_queue_t *q; - ngx_connection_t *c; + ngx_connection_t *c; ngx_log_debug0(NGX_LOG_DEBUG_HTTP, pc->log, 0, "get keepalive peer");