Mercurial > hg > nginx
comparison src/os/unix/ngx_files.c @ 4938:64ffc28850bb
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 26 Nov 2012 21:19:57 +0000 |
parents | bd6299189b49 |
children | 1e2d5d3f9f6b |
comparison
equal
deleted
inserted
replaced
4937:3b6594a2b79f | 4938:64ffc28850bb |
---|---|
244 ngx_log_debug2(NGX_LOG_DEBUG_CORE, file->log, 0, | 244 ngx_log_debug2(NGX_LOG_DEBUG_CORE, file->log, 0, |
245 "writev: %d, %z", file->fd, n); | 245 "writev: %d, %z", file->fd, n); |
246 | 246 |
247 file->sys_offset += n; | 247 file->sys_offset += n; |
248 file->offset += n; | 248 file->offset += n; |
249 offset += n; | |
249 total += n; | 250 total += n; |
250 | 251 |
251 } while (cl); | 252 } while (cl); |
252 | 253 |
253 return total; | 254 return total; |