Mercurial > hg > nginx-quic
comparison src/event/ngx_event_accept.c @ 2049:2a92804f4109
*) back out r2040
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Jun 2008 15:00:30 +0000 |
parents | f30b1a75fd3b |
children | 5975975eedc0 |
comparison
equal
deleted
inserted
replaced
2048:824615f3b4ec | 2049:2a92804f4109 |
---|---|
199 rev->own_lock = &c->lock; | 199 rev->own_lock = &c->lock; |
200 wev->own_lock = &c->lock; | 200 wev->own_lock = &c->lock; |
201 #endif | 201 #endif |
202 | 202 |
203 if (ls->addr_ntop) { | 203 if (ls->addr_ntop) { |
204 c->addr_text.data = ngx_palloc(c->pool, ls->addr_text_max_len); | 204 c->addr_text.data = ngx_pnalloc(c->pool, ls->addr_text_max_len); |
205 if (c->addr_text.data == NULL) { | 205 if (c->addr_text.data == NULL) { |
206 ngx_close_accepted_connection(c); | 206 ngx_close_accepted_connection(c); |
207 return; | 207 return; |
208 } | 208 } |
209 | 209 |