diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2021-12-24 15:53:59 +0300 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2021-12-24 15:53:59 +0300 |
| commit | fa4da058549d122387f5d553b62b0ec15b84ddc8 (patch) | |
| tree | db7b2f8666f24e805b4e5c13c021b0f6cac9dbd6 /src/os/unix | |
| parent | 3341a850763eec48263a4ab2fd3a35008b11da3e (diff) | |
| parent | 363505e806feebb7ceb1f9edb0e3f75c1253384f (diff) | |
| download | nginx-fa4da058549d122387f5d553b62b0ec15b84ddc8.tar.gz nginx-fa4da058549d122387f5d553b62b0ec15b84ddc8.tar.bz2 | |
Merged with the default branch.
Diffstat (limited to 'src/os/unix')
| -rw-r--r-- | src/os/unix/ngx_freebsd_sendfile_chain.c | 13 | ||||
| -rw-r--r-- | src/os/unix/ngx_linux_sendfile_chain.c | 9 |
2 files changed, 0 insertions, 22 deletions
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c index 3d415bd2c..750c12fc3 100644 --- a/src/os/unix/ngx_freebsd_sendfile_chain.c +++ b/src/os/unix/ngx_freebsd_sendfile_chain.c @@ -255,19 +255,6 @@ ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) #if (NGX_HAVE_AIO_SENDFILE) if (ebusy) { - if (aio->event.active) { - /* - * tolerate duplicate calls; they can happen due to subrequests - * or multiple calls of the next body filter from a filter - */ - - if (sent) { - c->busy_count = 0; - } - - return in; - } - if (sent == 0) { c->busy_count++; diff --git a/src/os/unix/ngx_linux_sendfile_chain.c b/src/os/unix/ngx_linux_sendfile_chain.c index 91e7f1d93..101d91a9a 100644 --- a/src/os/unix/ngx_linux_sendfile_chain.c +++ b/src/os/unix/ngx_linux_sendfile_chain.c @@ -379,15 +379,6 @@ ngx_linux_sendfile_thread(ngx_connection_t *c, ngx_buf_t *file, size_t size) return ctx->sent; } - if (task->event.active && ctx->file == file) { - /* - * tolerate duplicate calls; they can happen due to subrequests - * or multiple calls of the next body filter from a filter - */ - - return NGX_DONE; - } - ctx->file = file; ctx->socket = c->fd; ctx->size = size; |
