aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_proxy_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2013-05-13 17:39:45 +0400
committerMaxim Dounin <mdounin@mdounin.ru>2013-05-13 17:39:45 +0400
commit885861b6836e43ad7755bb6533105db9d0769e32 (patch)
tree94e843c684c39c73b0b405a7db0f7d369d53c0d0 /src/http/modules/ngx_http_proxy_module.c
parentdcdf9eed8d7f8f3021a8edab9716b3222b7597b5 (diff)
downloadnginx-885861b6836e43ad7755bb6533105db9d0769e32.tar.gz
nginx-885861b6836e43ad7755bb6533105db9d0769e32.zip
Fixed lingering_time check.
There are two significant changes in this patch: 1) The <= 0 comparison is done with a signed type. This fixes the case of ngx_time() being larger than r->lingering_time. 2) Calculation of r->lingering_time - ngx_time() is now always done in the ngx_msec_t type. This ensures the calculation is correct even if time_t is unsigned and differs in size from ngx_msec_t. Thanks to Lanshun Zhou.
Diffstat (limited to 'src/http/modules/ngx_http_proxy_module.c')
0 files changed, 0 insertions, 0 deletions