Changeset 1858
- Timestamp:
- 05/24/2007 01:05:37 AM (17 months ago)
- Location:
- trunk/src
- Files:
-
- 5 modified
-
configfile.c (modified) (1 diff)
-
mod_magnet.c (modified) (1 diff)
-
mod_proxy.c (modified) (2 diffs)
-
mod_proxy_core.c (modified) (11 diffs)
-
response.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/configfile.c
r1836 r1858 1244 1244 if (FDEVENT_HANDLER_UNSET == srv->event_handler) { 1245 1245 log_error_write(srv, __FILE__, __LINE__, "sb", 1246 "the selected event-handler i nunknown or not supported:",1246 "the selected event-handler is unknown or not supported:", 1247 1247 srv->srvconf.event_handler ); 1248 1248 -
trunk/src/mod_magnet.c
r1811 r1858 709 709 * lighty.request[] has the HTTP-request headers 710 710 * lighty.content[] is a table of string/file 711 * lighty.header[] is a array to set response headers711 * lighty.header[] is an array to set response headers 712 712 */ 713 713 -
trunk/src/mod_proxy.c
r1496 r1858 53 53 * 54 54 * TODO: - delay upstream read if write_queue is too large 55 * (to prevent memory eating, like in apache). Shou d be55 * (to prevent memory eating, like in apache). Should be 56 56 * configurable). 57 57 * - persistent connection with upstream servers … … 942 942 case -1: 943 943 if (con->file_started == 0) { 944 /* nothing has been sen dout yet, send a 500 */944 /* nothing has been sent out yet, send a 500 */ 945 945 con->http_status = 500; 946 946 con->mode = DIRECT; -
trunk/src/mod_proxy_core.c
r1856 r1858 323 323 s->balancer = di->value; 324 324 } else { 325 ERROR("proxy.balance has to be on of 'round-robin', 'carp', 'sqf', 'static'got %s", BUF_STR(p->balance_buf));325 ERROR("proxy.balance has to be one of 'round-robin', 'carp', 'sqf', 'static': got %s", BUF_STR(p->balance_buf)); 326 326 return HANDLER_ERROR; 327 327 } … … 331 331 proxy_protocol *protocol = NULL; 332 332 if (NULL == (protocol = proxy_get_protocol(p->protocol_buf))) { 333 ERROR("proxy.protocol has to be on of { %s } got %s, you might have to load 'mod_proxy_backend_%s'",333 ERROR("proxy.protocol has to be one of { %s } got %s, you might have to load 'mod_proxy_backend_%s'", 334 334 proxy_available_protocols(), 335 335 BUF_STR(p->protocol_buf), … … 1023 1023 switch (srv->network_backend_read(srv, con, proxy_con->sock, proxy_con->recv)) { 1024 1024 case NETWORK_STATUS_CONNECTION_CLOSE: 1025 /* a close here mean we can't read/write anymore data. */1025 /* a close here means we can't read/write any more data. */ 1026 1026 sess->is_closed = 1; 1027 1027 proxy_con->send->is_closed = 1; … … 1077 1077 1078 1078 /** 1079 * on NETWORK_STATUS_WAIT_FOR_AIO_EVENT we are no allowed to call the state-engine1079 * on NETWORK_STATUS_WAIT_FOR_AIO_EVENT we are not allowed to call the state-engine 1080 1080 * the connection has to sleep until our disk-read is finished 1081 1081 * … … 1105 1105 1106 1106 /* the backend might have been disabled by a full connection pool, re-enable 1107 * if there is at least one active address.1107 * if there is at least one active address. 1108 1108 */ 1109 1109 if (sess->proxy_backend->disabled_addresses <= sess->proxy_backend->address_pool->used) { … … 1124 1124 1125 1125 /** 1126 * Recycle packend proxy connection.1126 * Recycle backend proxy connection. 1127 1127 * 1128 1128 * 1. close the connection if keep-alive is disable … … 1179 1179 1180 1180 case PROXY_CONNECTION_STATE_CLOSED: 1181 /* user terminate connection and proxy connection is still in CONNECTING mode.1182 * this happen ds frequently when backends are slow1181 /* user terminated connection and proxy connection is still in CONNECTING mode. 1182 * this happens frequently when backends are slow 1183 1183 */ 1184 1184 case PROXY_CONNECTION_STATE_CONNECTING: … … 2260 2260 return HANDLER_GO_ON; 2261 2261 case PROXY_STATE_CONNECTING: 2262 /* this connections is waited 10 seconds to connect to the backend2262 /* this connections has waited 10 seconds to connect to the backend 2263 2263 * and didn't got a successful connection yet, sending timeout */ 2264 2264 if (srv->cur_ts - sess->connect_start_ts > 10) { … … 2310 2310 } 2311 2311 2312 /* no, not really a event,2312 /* no, not really an event, 2313 2313 * we just want to block the outer loop from stepping forward 2314 2314 * … … 2344 2344 } 2345 2345 2346 /* no, not really a event,2346 /* no, not really an event, 2347 2347 * we just want to block the outer loop from stepping forward 2348 2348 * … … 2367 2367 } 2368 2368 2369 /* no, not really a event,2369 /* no, not really an event, 2370 2370 * we just want to block the outer loop from stepping forward 2371 2371 * -
trunk/src/response.c
r1795 r1858 274 274 275 275 if (con->conf.log_request_handling) { 276 TRACE("-- %s", "san atising URI");276 TRACE("-- %s", "sanitizing URI"); 277 277 TRACE("URI-path : %s", BUF_STR(con->uri.path)); 278 278 }

