]> git.kaiwu.me - nginx.git/commit
Fixed counting of sent bytes in the send chain functions on EINTR.
authorValentin Bartenev <vbart@nginx.com>
Wed, 27 Aug 2014 16:51:01 +0000 (20:51 +0400)
committerValentin Bartenev <vbart@nginx.com>
Wed, 27 Aug 2014 16:51:01 +0000 (20:51 +0400)
commit840b347bb24bea09f9824891239929cdce84e47b
tree5d15de6ef6f0da2f44d6a5dd646330453a12ca78
parent70995077ad9866b6c85d7fbb86d31bc5445bc821
Fixed counting of sent bytes in the send chain functions on EINTR.

Previously, a value of the "send" variable wasn't properly adjusted
in a rare case when syscall was interrupted by a signal.  As a result,
these functions could send less data than the limit allows.
src/os/unix/ngx_darwin_sendfile_chain.c
src/os/unix/ngx_freebsd_sendfile_chain.c
src/os/unix/ngx_linux_sendfile_chain.c
src/os/unix/ngx_solaris_sendfilev_chain.c
src/os/unix/ngx_writev_chain.c