[nginx] SPDY: macro used for recv_buffer_size initialization.

Maxim Dounin mdounin at mdounin.ru
Wed Mar 19 14:37:16 UTC 2014


details:   http://hg.nginx.org/nginx/rev/02ee639d18a8
branches:  
changeset: 5615:02ee639d18a8
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Wed Mar 19 12:57:32 2014 +0400
description:
SPDY: macro used for recv_buffer_size initialization.

diffstat:

 src/http/ngx_http_spdy_module.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (14 lines):

diff --git a/src/http/ngx_http_spdy_module.c b/src/http/ngx_http_spdy_module.c
--- a/src/http/ngx_http_spdy_module.c
+++ b/src/http/ngx_http_spdy_module.c
@@ -251,9 +251,7 @@ ngx_http_spdy_init_main_conf(ngx_conf_t 
 {
     ngx_http_spdy_main_conf_t *smcf = conf;
 
-    if (smcf->recv_buffer_size == NGX_CONF_UNSET_SIZE) {
-        smcf->recv_buffer_size = 256 * 1024;
-    }
+    ngx_conf_init_size_value(smcf->recv_buffer_size, 256 * 1024);
 
     return NGX_CONF_OK;
 }



More information about the nginx-devel mailing list