comparison src/http/ngx_http.c @ 2852:dfe04af9d30b

update comments missed in r2513
author Igor Sysoev <igor@sysoev.ru>
date Sun, 17 May 2009 20:13:29 +0000
parents d791586bb149
children 98e288c6dac3
comparison
equal deleted inserted replaced
2851:d791586bb149 2852:dfe04af9d30b
1178 1178
1179 if (p != port[i].port || sa->sa_family != port[i].family) { 1179 if (p != port[i].port || sa->sa_family != port[i].family) {
1180 continue; 1180 continue;
1181 } 1181 }
1182 1182
1183 /* a port is already in the in_port list */ 1183 /* a port is already in the port list */
1184 1184
1185 return ngx_http_add_addresses(cf, cscf, &port[i], listen); 1185 return ngx_http_add_addresses(cf, cscf, &port[i], listen);
1186 } 1186 }
1187 1187
1188 /* add a port to the in_port list */ 1188 /* add a port to the port list */
1189 1189
1190 port = ngx_array_push(ports); 1190 port = ngx_array_push(ports);
1191 if (port == NULL) { 1191 if (port == NULL) {
1192 return NGX_ERROR; 1192 return NGX_ERROR;
1193 } 1193 }
1277 } 1277 }
1278 1278
1279 1279
1280 /* 1280 /*
1281 * add the server address, the server names and the server core module 1281 * add the server address, the server names and the server core module
1282 * configurations to the port (in_port) 1282 * configurations to the port list
1283 */ 1283 */
1284 1284
1285 static ngx_int_t 1285 static ngx_int_t
1286 ngx_http_add_address(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, 1286 ngx_http_add_address(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf,
1287 ngx_http_conf_port_t *port, ngx_http_listen_t *listen) 1287 ngx_http_conf_port_t *port, ngx_http_listen_t *listen)