comparison src/core/ngx_palloc.c @ 583:4e296b7d25bf release-0.3.13

nginx-0.3.13-RELEASE import *) Feature: the IMAP/POP3 proxy supports STARTTLS and STLS. *) Bugfix: the IMAP/POP3 proxy did not work with the select, poll, and /dev/poll methods. *) Bugfix: in SSI handling. *) Bugfix: now Solaris sendfilev() is not used to transfer the client request body to FastCGI-server via the unix domain socket. *) Bugfix: the "auth_basic" directive did not disable the authorization; the bug had appeared in 0.3.11.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 05 Dec 2005 13:18:09 +0000
parents 326634fb9d47
children d4e858a5751a
comparison
equal deleted inserted replaced
582:6646640ac20b 583:4e296b7d25bf
100 100
101 return m; 101 return m;
102 } 102 }
103 103
104 if ((size_t) (p->end - m) < NGX_ALIGNMENT) { 104 if ((size_t) (p->end - m) < NGX_ALIGNMENT) {
105 p->current = p->next; 105 pool->current = p->next;
106 } 106 }
107 107
108 if (p->next == NULL) { 108 if (p->next == NULL) {
109 break; 109 break;
110 } 110 }
115 n = ngx_create_pool((size_t) (p->end - (u_char *) p), p->log); 115 n = ngx_create_pool((size_t) (p->end - (u_char *) p), p->log);
116 if (n == NULL) { 116 if (n == NULL) {
117 return NULL; 117 return NULL;
118 } 118 }
119 119
120 if (p->current == NULL) { 120 if (pool->current == NULL) {
121 p->current = n; 121 pool->current = n;
122 } 122 }
123 123
124 p->next = n; 124 p->next = n;
125 m = ngx_align(n->last); 125 m = ngx_align(n->last);
126 n->last = m + size; 126 n->last = m + size;