mirror of https://github.com/openresty/openresty
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
461 B
C
16 lines
461 B
C
9 years ago
|
--- src/os/unix/ngx_files.c
|
||
|
+++ src/os/unix/ngx_files.c
|
||
|
@@ -183,6 +183,12 @@ ngx_write_chain_to_file(ngx_file_t *file
|
||
|
/* create the iovec and coalesce the neighbouring bufs */
|
||
|
|
||
|
while (cl && vec.nelts < IOV_MAX) {
|
||
|
+
|
||
|
+ if (ngx_buf_special(cl->buf)) {
|
||
|
+ cl = cl->next;
|
||
|
+ continue;
|
||
|
+ }
|
||
|
+
|
||
|
if (prev == cl->buf->pos) {
|
||
|
iov->iov_len += cl->buf->last - cl->buf->pos;
|
||
|
|