Mercurial > hg > nginx
comparison src/http/ngx_http_request_body.c @ 3166:b208e383657d
fix r3078: do not increase request counter if body has been just discarded
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 26 Sep 2009 13:24:15 +0000 |
parents | 9140fbb2ab83 |
children | 74b74513ed59 |
comparison
equal
deleted
inserted
replaced
3165:7658e9c7e814 | 3166:b208e383657d |
---|---|
475 | 475 |
476 if (ngx_handle_read_event(rev, 0) != NGX_OK) { | 476 if (ngx_handle_read_event(rev, 0) != NGX_OK) { |
477 return NGX_HTTP_INTERNAL_SERVER_ERROR; | 477 return NGX_HTTP_INTERNAL_SERVER_ERROR; |
478 } | 478 } |
479 | 479 |
480 r->count++; | 480 if (ngx_http_read_discarded_request_body(r) != NGX_OK) { |
481 (void) ngx_http_read_discarded_request_body(r); | 481 r->count++; |
482 } | |
482 | 483 |
483 return NGX_OK; | 484 return NGX_OK; |
484 } | 485 } |
485 | 486 |
486 | 487 |