comparison src/http/ngx_http_request.c @ 521:6f00349b98e5 release-0.1.35

nginx-0.1.35-RELEASE import *) Feature: the "working_directory" directive. *) Feature: the "port_in_redirect" directive. *) Bugfix: the segmentation fault was occurred if the backend response header was in several packets; the bug had appeared in 0.1.29. *) Bugfix: if more than 10 servers were configured or some server did not use the "listen" directive, then the segmentation fault was occurred on the start. *) Bugfix: the segmentation fault might occur if the response was bigger than the temporary file. *) Bugfix: nginx returned the 400 response on requests like "GET http://www.domain.com/uri HTTP/1.0"; the bug had appeared in 0.1.28.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 07 Jun 2005 15:56:31 +0000
parents fbbf16224844
children 2019117e6b38
comparison
equal deleted inserted replaced
520:1fecc7e0d717 521:6f00349b98e5
1720 ngx_http_discard_body(ngx_http_request_t *r) 1720 ngx_http_discard_body(ngx_http_request_t *r)
1721 { 1721 {
1722 ssize_t size; 1722 ssize_t size;
1723 ngx_event_t *rev; 1723 ngx_event_t *rev;
1724 1724
1725 if (r->main) {
1726 return NGX_OK;
1727 }
1728
1725 rev = r->connection->read; 1729 rev = r->connection->read;
1726 1730
1727 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, rev->log, 0, "http set discard body"); 1731 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, rev->log, 0, "http set discard body");
1728 1732
1729 if (rev->timer_set) { 1733 if (rev->timer_set) {