Searched refs:limit (Results 1 - 25 of 30) sorted by relevance

12

/tldk/app/nginx/src/os/unix/
H A Dngx_linux.h13 off_t limit);
H A Dngx_solaris.h13 off_t limit);
H A Dngx_darwin.h14 off_t limit);
H A Dngx_solaris_sendfilev_chain.c33 off_t limit);
42 ngx_solaris_sendfilev_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) argument
64 return ngx_writev_chain(c, in, limit);
68 /* the maximum limit size is the maximum size_t value - the page size */
70 if (limit == 0 || limit > (off_t) (NGX_MAX_SIZE_T_VALUE - ngx_pagesize)) {
71 limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize;
91 for (cl = in; cl && send < limit; cl = cl->next) {
102 if (send + size > limit) {
103 size = limit
[all...]
H A Dngx_freebsd.h14 off_t limit);
H A Dngx_darwin_sendfile_chain.c31 ngx_darwin_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) argument
64 /* the maximum limit size is the maximum size_t value - the page size */
66 if (limit == 0 || limit > (off_t) (NGX_MAX_SIZE_T_VALUE - ngx_pagesize)) {
67 limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize;
84 cl = ngx_output_chain_to_iovec(&header, in, limit - send, c->log);
92 if (cl && cl->buf->in_file && send < limit) {
97 file_size = ngx_chain_coalesce_file(&cl, limit - send);
101 if (header.count == 0 && send < limit) {
107 cl = ngx_output_chain_to_iovec(&trailer, cl, limit
[all...]
H A Dngx_writev_chain.c14 ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) argument
40 /* the maximum limit size is the maximum size_t value - the page size */
42 if (limit == 0 || limit > (off_t) (NGX_MAX_SIZE_T_VALUE - ngx_pagesize)) {
43 limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize;
56 cl = ngx_output_chain_to_iovec(&vec, in, limit - send, c->log);
100 if (send >= limit || in == NULL) {
108 ngx_output_chain_to_iovec(ngx_iovec_t *vec, ngx_chain_t *in, size_t limit, argument
121 for ( /* void */ ; in && total < limit; in = in->next) {
152 if (size > limit
[all...]
H A Dngx_os.h21 off_t limit);
24 off_t limit);
47 ssize_t ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *entry, off_t limit);
51 off_t limit);
54 off_t limit);
72 size_t limit, ngx_log_t *log);
H A Dngx_freebsd_sendfile_chain.c33 ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) argument
70 /* the maximum limit size is the maximum size_t value - the page size */
72 if (limit == 0 || limit > (off_t) (NGX_MAX_SIZE_T_VALUE - ngx_pagesize)) {
73 limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize;
100 cl = ngx_output_chain_to_iovec(&header, in, limit - send, c->log);
108 if (cl && cl->buf->in_file && send < limit) {
113 file_size = (size_t) ngx_chain_coalesce_file(&cl, limit - send);
117 if (send < limit) {
123 cl = ngx_output_chain_to_iovec(&trailer, cl, limit
[all...]
H A Dngx_readv_chain.c14 ngx_readv_chain(ngx_connection_t *c, ngx_chain_t *chain, off_t limit) argument
85 if (limit) {
86 if (size >= limit) {
90 if (size + n > limit) {
91 n = (ssize_t) (limit - size);
H A Dngx_linux_sendfile_chain.c40 * so we limit it to 2G-1 bytes.
47 ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) argument
67 /* the maximum limit size is 2G-1 - the page size */
69 if (limit == 0 || limit > (off_t) (NGX_SENDFILE_MAXSIZE - ngx_pagesize)) {
70 limit = NGX_SENDFILE_MAXSIZE - ngx_pagesize;
84 cl = ngx_output_chain_to_iovec(&header, in, limit - send, c->log);
159 if (header.count == 0 && cl && cl->buf->in_file && send < limit) {
164 file_size = (size_t) ngx_chain_coalesce_file(&cl, limit - send);
222 if (send >= limit || i
[all...]
H A Dngx_udp_sendmsg_chain.c19 ngx_udp_unix_sendmsg_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) argument
45 /* the maximum limit size is the maximum size_t value - the page size */
47 if (limit == 0 || limit > (off_t) (NGX_MAX_SIZE_T_VALUE - ngx_pagesize)) {
48 limit = NGX_MAX_SIZE_T_VALUE - ngx_pagesize;
106 if (send >= limit || in == NULL) {
/tldk/app/nginx/src/os/win32/
H A Dngx_os.h21 off_t limit);
24 off_t limit);
47 ssize_t ngx_wsarecv_chain(ngx_connection_t *c, ngx_chain_t *chain, off_t limit);
51 off_t limit);
53 off_t limit);
H A Dngx_wsarecv_chain.c17 ngx_wsarecv_chain(ngx_connection_t *c, ngx_chain_t *chain, off_t limit) argument
46 if (limit) {
47 if (size >= (size_t) limit) {
51 if (size + n > (size_t) limit) {
52 n = (size_t) limit - size;
H A Dngx_wsasend_chain.c17 ngx_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) argument
35 /* the maximum limit size is the maximum u_long value - the page size */
37 if (limit == 0 || limit > (off_t) (NGX_MAX_UINT32_VALUE - ngx_pagesize)) {
38 limit = NGX_MAX_UINT32_VALUE - ngx_pagesize;
63 cl && vec.nelts < ngx_max_wsabufs && send < limit;
72 if (send + size > limit) {
73 size = (u_long) (limit - send);
123 if (send >= limit || in == NULL) {
131 ngx_overlapped_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) argument
[all...]
/tldk/app/nginx/src/http/
H A Dngx_http_write_filter_module.c50 off_t size, sent, nsent, limit; local
226 limit = (off_t) r->limit_rate * (ngx_time() - r->start_sec + 1)
229 if (limit <= 0) {
231 delay = (ngx_msec_t) (- limit * 1000 / r->limit_rate + 1);
240 && (off_t) clcf->sendfile_max_chunk < limit)
242 limit = clcf->sendfile_max_chunk;
246 limit = clcf->sendfile_max_chunk;
252 "http write filter limit %O", limit);
254 chain = c->send_chain(c, r->out, limit);
[all...]
/tldk/app/nginx/src/http/modules/
H A Dngx_http_limit_req_module.c60 static ngx_int_t ngx_http_limit_req_lookup(ngx_http_limit_req_limit_t *limit,
63 ngx_uint_t n, ngx_uint_t *ep, ngx_http_limit_req_limit_t **limit);
166 ngx_http_limit_req_limit_t *limit, *limits; local
180 limit = NULL;
185 limit = &limits[n];
187 ctx = limit->shm_zone->data;
209 rc = ngx_http_limit_req_lookup(limit, hash, &key, &excess,
235 &limit->shm_zone->shm.name);
263 delay = ngx_http_limit_req_account(limits, n, &excess, &limit);
271 excess / 1000, excess % 1000, &limit
360 ngx_http_limit_req_lookup(ngx_http_limit_req_limit_t *limit, ngx_uint_t hash, ngx_str_t *key, ngx_uint_t *ep, ngx_uint_t account) argument
480 ngx_http_limit_req_account(ngx_http_limit_req_limit_t *limits, ngx_uint_t n, ngx_uint_t *ep, ngx_http_limit_req_limit_t **limit) argument
861 ngx_http_limit_req_limit_t *limit, *limits; local
[all...]
H A Dngx_http_limit_conn_module.c235 "limit conn: %08Xi %d", node->key, lc->conn);
354 "limit conn cleanup: %08Xi %d", node->key, lc->conn);
598 ngx_http_limit_conn_limit_t *limit, *limits; local
638 "connection limit must be less 65536");
642 limit = ngx_array_push(&lccf->limits);
643 if (limit == NULL) {
647 limit->conn = n;
648 limit->shm_zone = shm_zone;
/tldk/app/nginx/src/core/
H A Dngx_buf.c226 ngx_chain_coalesce_file(ngx_chain_t **in, off_t limit) argument
240 if (size > limit - total) {
241 size = limit - total;
260 && total < limit
H A Dngx_buf.h121 off_t limit; member in struct:__anon3
166 off_t ngx_chain_coalesce_file(ngx_chain_t **in, off_t limit);
/tldk/app/nginx/src/http/v2/
H A Dngx_http_v2_filter_module.c62 ngx_chain_t *in, off_t limit);
793 ngx_http_v2_send_chain(ngx_connection_t *fc, ngx_chain_t *in, off_t limit) argument
862 if (limit == 0 || limit > (off_t) h2c->send_window) {
863 limit = h2c->send_window;
866 if (limit > stream->send_window) {
867 limit = (stream->send_window > 0) ? stream->send_window : 0;
880 if ((off_t) frame_size > limit) {
881 frame_size = (size_t) limit;
953 limit
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream_limit_conn_module.c213 "limit conn: %08Xi %d", node->key, lc->conn);
333 "limit conn cleanup: %08Xi %d", node->key, lc->conn);
574 ngx_stream_limit_conn_limit_t *limit, *limits; local
614 "connection limit must be less 65536");
618 limit = ngx_array_push(&lccf->limits);
619 if (limit == NULL) {
623 limit->conn = n;
624 limit->shm_zone = shm_zone;
/tldk/app/nginx/src/event/
H A Dngx_event_openssl.h234 ssize_t ngx_ssl_recv_chain(ngx_connection_t *c, ngx_chain_t *cl, off_t limit);
236 off_t limit);
H A Dngx_event_pipe.c104 off_t limit; local
202 limit = (off_t) p->limit_rate * (ngx_time() - p->start_sec + 1)
205 if (limit <= 0) {
207 delay = (ngx_msec_t) (- limit * 1000 / p->limit_rate + 1);
213 limit = 0;
304 n = p->upstream->recv_chain(p->upstream, chain, limit);
H A Dngx_event_openssl.c1386 ngx_ssl_recv_chain(ngx_connection_t *c, ngx_chain_t *cl, off_t limit) argument
1400 if (limit) {
1401 if (bytes >= limit) {
1405 if (bytes + size > limit) {
1406 size = (ssize_t) (limit - bytes);
1637 ngx_ssl_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) argument
1673 /* the maximum limit size is the maximum int32_t value - the page size */
1675 if (limit == 0 || limit > (off_t) (NGX_MAX_INT32_VALUE - ngx_pagesize)) {
1676 limit
[all...]

Completed in 22 milliseconds

12