]> git.kaiwu.me - nginx.git/commitdiff
fix unlikely socket leak
authorIgor Sysoev <igor@sysoev.ru>
Sat, 1 Sep 2007 16:41:52 +0000 (16:41 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 1 Sep 2007 16:41:52 +0000 (16:41 +0000)
src/http/ngx_http_request_body.c

index 2906c896fce4660e6562a32fbb03c0a511c3714f..dfe5e0fe16ad8a9090e05d4f8bec15c541e4b9a5 100644 (file)
@@ -521,6 +521,7 @@ ngx_http_read_discarded_request_body_handler(ngx_http_request_t *r)
     /* rc == NGX_AGAIN */
 
     if (ngx_handle_read_event(rev, 0) == NGX_ERROR) {
+        c->error = 1;
         ngx_http_finalize_request(r, rc);
         return;
     }