Mercurial > hg > nginx-quic
comparison src/core/ngx_output_chain.c @ 1227:3e40f3e4376c
inherit flush flag, this fixes https proxying
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 03 Jun 2007 19:58:30 +0000 |
parents | 2b4fdc9640b7 |
children | bb03410441d9 |
comparison
equal
deleted
inserted
replaced
1226:2b4fdc9640b7 | 1227:3e40f3e4376c |
---|---|
375 | 375 |
376 } else { | 376 } else { |
377 dst->in_file = 0; | 377 dst->in_file = 0; |
378 } | 378 } |
379 | 379 |
380 if (src->last_buf && src->pos == src->last) { | 380 if (src->pos == src->last) { |
381 dst->last_buf = 1; | 381 dst->flush = src->flush; |
382 dst->last_buf = src->last_buf; | |
382 } | 383 } |
383 | 384 |
384 } else { | 385 } else { |
385 n = ngx_read_file(src->file, dst->pos, (size_t) size, src->file_pos); | 386 n = ngx_read_file(src->file, dst->pos, (size_t) size, src->file_pos); |
386 | 387 |
415 dst->in_file = 0; | 416 dst->in_file = 0; |
416 } | 417 } |
417 | 418 |
418 src->file_pos += n; | 419 src->file_pos += n; |
419 | 420 |
420 if (src->last_buf && src->file_pos == src->file_last) { | 421 if (src->pos == src->last) { |
421 dst->last_buf = 1; | 422 dst->flush = src->flush; |
423 dst->last_buf = src->last_buf; | |
422 } | 424 } |
423 } | 425 } |
424 | 426 |
425 return NGX_OK; | 427 return NGX_OK; |
426 } | 428 } |