# HG changeset patch # User Maxim Dounin # Date 1224775116 -14400 # Node ID e7d1b49e0611754d6dc6628af01b439523ca7d93 # Parent e18e4613b841b2b27c7042b7ce5772d47466fa95 Keepalive: style. diff --git a/ngx_http_upstream_keepalive_module.c b/ngx_http_upstream_keepalive_module.c --- a/ngx_http_upstream_keepalive_module.c +++ b/ngx_http_upstream_keepalive_module.c @@ -8,11 +8,13 @@ #include #include + 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");