diff options
Diffstat (limited to 'src/nxt_sendbuf.c')
-rw-r--r-- | src/nxt_sendbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nxt_sendbuf.c b/src/nxt_sendbuf.c index 361cb0cd..2a529c14 100644 --- a/src/nxt_sendbuf.c +++ b/src/nxt_sendbuf.c @@ -373,7 +373,7 @@ nxt_sendbuf_update(nxt_buf_t *b, size_t sent) nxt_buf_t * nxt_sendbuf_completion(nxt_task_t *task, nxt_work_queue_t *wq, nxt_buf_t *b, - size_t sent) + size_t sent, nxt_bool_t mmap_mode) { size_t size; @@ -391,7 +391,7 @@ nxt_sendbuf_completion(nxt_task_t *task, nxt_work_queue_t *wq, nxt_buf_t *b, break; } - if (nxt_buf_is_port_mmap(b)) { + if (nxt_buf_is_port_mmap(b) && mmap_mode) { /* * buffer has been sent to other side which is now * responsible for shared memory bucket release |