mirror of
https://github.com/nginx/nginx.git
synced 2026-10-23 12:32:56 +00:00
Core: fixed ngx_write_chain_to_file() with IOV_MAX reached.
Catched by dav_chunked.t on Solaris. In released versions this might potentially result in corruption of complex protocol responses if they were written to disk and there were more distinct buffers than IOV_MAX in a single write.
This commit is contained in:
parent
e769544a7d
commit
1469b51451
1 changed files with 1 additions and 0 deletions
|
|
@ -246,6 +246,7 @@ ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *cl, off_t offset,
|
|||
|
||||
file->sys_offset += n;
|
||||
file->offset += n;
|
||||
offset += n;
|
||||
total += n;
|
||||
|
||||
} while (cl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue