Klaus Demo nginx / e5dabbf
nginx-0.0.11-2004-09-20-19:17:02 import Igor Sysoev 17 years ago
2 changed file(s) with 9 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
128128
129129 #if (NGX_STAT_STUB)
130130 (*ngx_stat_accepted)++;
131 (*ngx_stat_active)++;
132131 #endif
133132
134133 ngx_accept_disabled = (ngx_uint_t) s + NGX_ACCEPT_THRESHOLD
148147 ngx_destroy_pool(pool);
149148 return;
150149 }
150
151 #if (NGX_STAT_STUB)
152 (*ngx_stat_active)++;
153 #endif
151154
152155 /* set a blocking mode for aio and non-blocking mode for the others */
153156
439439 * Besides we free this memory as soon as the gzipping will complete
440440 * and do not wait while a whole response will be sent to a client.
441441 *
442 * 8K is for zlib deflate_state (~6K).
443 *
444 * TODO: 64-bit, autoconf of deflate_state size
442 * 8K is for zlib deflate_state. It takes 5816 bytes on x86
443 * and 5920 bytes on amd64.
445444 */
446445
447446 ctx->allocated = 8192 + (1 << (wbits + 2)) + (1 << (memlevel + 9));
803802 if (alloc % 512 != 0) {
804803
805804 /*
806 * allocate the zlib deflate_state, it takes about 6K on x86,
807 * we allocate 8K
805 * The zlib deflate_state allocation, it takes 5816 bytes on x86
806 * and 5920 bytes on amd64.
807 * We allocate 8K.
808808 */
809809
810810 alloc = (alloc + ngx_pagesize - 1) & ~(ngx_pagesize - 1);