Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream.c @ 4546:4988fa232629
For the sake of case/switch code readability, 'fall through'
comments added.
author | Maxim Konovalov <maxim@nginx.com> |
---|---|
date | Mon, 19 Mar 2012 14:57:29 +0000 |
parents | 778ef9c3fd2d |
children | 67653855682e |
comparison
equal
deleted
inserted
replaced
4545:ba39af7274ed | 4546:4988fa232629 |
---|---|
3310 n = ngx_atoi(p, len); | 3310 n = ngx_atoi(p, len); |
3311 | 3311 |
3312 switch (n) { | 3312 switch (n) { |
3313 case 0: | 3313 case 0: |
3314 u->cacheable = 0; | 3314 u->cacheable = 0; |
3315 /* fall through */ | |
3316 | |
3315 case NGX_ERROR: | 3317 case NGX_ERROR: |
3316 return NGX_OK; | 3318 return NGX_OK; |
3317 | 3319 |
3318 default: | 3320 default: |
3319 r->cache->valid_sec = ngx_time() + n; | 3321 r->cache->valid_sec = ngx_time() + n; |
4458 return NGX_CONF_OK; | 4460 return NGX_CONF_OK; |
4459 | 4461 |
4460 case NGX_DECLINED: | 4462 case NGX_DECLINED: |
4461 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 4463 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
4462 "invalid address \"%V\"", &value[1]); | 4464 "invalid address \"%V\"", &value[1]); |
4465 /* fall through */ | |
4466 | |
4463 default: | 4467 default: |
4464 return NGX_CONF_ERROR; | 4468 return NGX_CONF_ERROR; |
4465 } | 4469 } |
4466 } | 4470 } |
4467 | 4471 |