1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include "nxt_main.h"
7#include "nxt_port_memory_int.h"
8#include "nxt_socket_msg.h"

--- 3062 unchanged lines hidden (view full) ---

3071
3072 if (res < (ssize_t) size) {
3073 nxt_unit_close(req->content_fd);
3074
3075 req->content_fd = -1;
3076 }
3077
3078 req->content_length -= res;
3079 size -= res;
3079
3080 dst = nxt_pointer_to(dst, res);
3081
3082 } else {
3083 res = 0;
3084 }
3085
3086 return buf_res + res;

--- 3701 unchanged lines hidden ---