Changeset 4955:2e4e4084b562 in nginx


Ignore:
Timestamp:
12/10/12 18:04:54 (4 years ago)
Author:
Maxim Dounin <mdounin@…>
Branch:
stable-1.2
Convert:
svn:c3fe7df1-7212-e011-8a91-001109144009/branches/stable-1.2@4956
Message:

Merge of r4920, r4939: ngx_write_chain_to_file() fixes.

*) Core: added debug logging of writev() in ngx_write_chain_to_file().

*) 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/os/unix/ngx_files.c

    r4794 r4955  
    242242        }
    243243
     244        ngx_log_debug2(NGX_LOG_DEBUG_CORE, file->log, 0,
     245                       "writev: %d, %z", file->fd, n);
     246
    244247        file->sys_offset += n;
    245248        file->offset += n;
     249        offset += n;
    246250        total += n;
    247251
Note: See TracChangeset for help on using the changeset viewer.