Mercurial > hg > nginx
comparison src/http/ngx_http_event.c @ 29:6a0b3d6e9c13
nginx-0.0.1-2002-12-17-18:48:27 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Dec 2002 15:48:27 +0000 |
parents | 53cb81681040 |
children | d45effe5854c |
comparison
equal
deleted
inserted
replaced
28:a117a7fdf042 | 29:6a0b3d6e9c13 |
---|---|
102 c->sockaddr = addr; | 102 c->sockaddr = addr; |
103 | 103 |
104 ngx_test_null(c->addr_text.data, ngx_palloc(c->pool, c->addr_text.len), | 104 ngx_test_null(c->addr_text.data, ngx_palloc(c->pool, c->addr_text.len), |
105 NGX_ERROR); | 105 NGX_ERROR); |
106 | 106 |
107 ngx_test_null(c->addr_text.len, | 107 c->addr_text.len = ngx_inet_ntop(c->family, |
108 ngx_inet_ntop(c->family, | 108 (char *)c->sockaddr + c->addr, |
109 (char *)c->sockaddr + c->addr, | 109 c->addr_text.data, c->addr_text.len); |
110 c->addr_text.data, c->addr_text.len), | 110 if (c->addr_text.len = 0) |
111 NGX_ERROR); | 111 return NGX_ERROR; |
112 | 112 |
113 ngx_test_null(ctx, ngx_pcalloc(c->pool, sizeof(ngx_http_log_ctx_t)), | 113 ngx_test_null(ctx, ngx_pcalloc(c->pool, sizeof(ngx_http_log_ctx_t)), |
114 NGX_ERROR); | 114 NGX_ERROR); |
115 ctx->client = c->addr_text.data; | 115 ctx->client = c->addr_text.data; |
116 ctx->action = "reading client request line"; | 116 ctx->action = "reading client request line"; |