comparison src/http/modules/proxy/ngx_http_proxy_cache.c @ 10:46833bd150cb NGINX_0_1_5

nginx 0.1.5 *) Bugfix: on Solaris and Linux there may be too many "recvmsg() returned not enough data" alerts. *) Bugfix: there were the "writev() failed (22: Invalid argument)" errors on Solaris in proxy mode without sendfile. On other platforms that do not support sendfile at all the process got caught in an endless loop. *) Bugfix: segmentation fault on Solaris in proxy mode and using sendfile. *) Bugfix: segmentation fault on Solaris. *) Bugfix: on-line upgrade did not work on Linux. *) Bugfix: the ngx_http_autoindex_module module did not escape the spaces, the quotes, and the percent signs in the directory listing. *) Change: the decrease of the copy operations. *) Feature: the userid_p3p directive.
author Igor Sysoev <http://sysoev.ru>
date Thu, 11 Nov 2004 00:00:00 +0300
parents f0b350454894
children 6f8b0dc0f8dd
comparison
equal deleted inserted replaced
9:77eee314ddbd 10:46833bd150cb
171 p->status_count = 0; 171 p->status_count = 0;
172 172
173 ngx_cpystrn(c->status_line.data, p->status_start, c->status_line.len + 1); 173 ngx_cpystrn(c->status_line.data, p->status_start, c->status_line.len + 1);
174 174
175 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 175 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
176 "http cache status %d \"%s\"", 176 "http cache status %ui \"%V\"",
177 c->status, c->status_line.data); 177 c->status, &c->status_line);
178 178
179 /* TODO: ngx_init_table */ 179 /* TODO: ngx_init_table */
180 c->headers_in.headers = ngx_create_table(r->pool, 20); 180 c->headers_in.headers = ngx_create_table(r->pool, 20);
181 181
182 for ( ;; ) { 182 for ( ;; ) {
217 break; 217 break;
218 } 218 }
219 } 219 }
220 220
221 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 221 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
222 "http cache header: \"%s: %s\"", 222 "http cache header: \"%V: %V\"", &h->key, &h->value);
223 h->key.data, h->value.data);
224 223
225 continue; 224 continue;
226 225
227 } else if (rc == NGX_HTTP_PARSE_HEADER_DONE) { 226 } else if (rc == NGX_HTTP_PARSE_HEADER_DONE) {
228 227
612 } 611 }
613 612
614 ep = p->upstream->event_pipe; 613 ep = p->upstream->event_pipe;
615 614
616 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, p->request->connection->log, 0, 615 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, p->request->connection->log, 0,
617 "http cache update len: " OFF_T_FMT ":" OFF_T_FMT, 616 "http cache update len: %O:%O",
618 p->cache->ctx.length, ep->read_length); 617 p->cache->ctx.length, ep->read_length);
619 618
620 if (p->cache->ctx.length == -1) { 619 if (p->cache->ctx.length == -1) {
621 /* TODO: test rc */ 620 /* TODO: test rc */
622 ngx_write_file(&ep->temp_file->file, 621 ngx_write_file(&ep->temp_file->file,