Changeset 1858

Show
Ignore:
Timestamp:
05/24/2007 01:05:37 AM (17 months ago)
Author:
moo
Message:

applied patch from #1195

Location:
trunk/src
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/configfile.c

    r1836 r1858  
    12441244                if (FDEVENT_HANDLER_UNSET == srv->event_handler) { 
    12451245                        log_error_write(srv, __FILE__, __LINE__, "sb", 
    1246                                         "the selected event-handler in unknown or not supported:", 
     1246                                        "the selected event-handler is unknown or not supported:", 
    12471247                                        srv->srvconf.event_handler ); 
    12481248 
  • trunk/src/mod_magnet.c

    r1811 r1858  
    709709         * lighty.request[] has the HTTP-request headers 
    710710         * lighty.content[] is a table of string/file 
    711          * lighty.header[] is a array to set response headers 
     711         * lighty.header[] is an array to set response headers 
    712712         */ 
    713713 
  • trunk/src/mod_proxy.c

    r1496 r1858  
    5353 * 
    5454 * TODO:      - delay upstream read if write_queue is too large 
    55  *              (to prevent memory eating, like in apache). Shoud be 
     55 *              (to prevent memory eating, like in apache). Should be 
    5656 *              configurable). 
    5757 *            - persistent connection with upstream servers 
     
    942942                case -1: 
    943943                        if (con->file_started == 0) { 
    944                                 /* nothing has been send out yet, send a 500 */ 
     944                                /* nothing has been sent out yet, send a 500 */ 
    945945                                con->http_status = 500; 
    946946                                con->mode = DIRECT; 
  • trunk/src/mod_proxy_core.c

    r1856 r1858  
    323323                                s->balancer = di->value; 
    324324                        } 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)); 
    326326                                return HANDLER_ERROR; 
    327327                        } 
     
    331331                        proxy_protocol *protocol = NULL; 
    332332                        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'", 
    334334                                                proxy_available_protocols(), 
    335335                                                BUF_STR(p->protocol_buf), 
     
    10231023                switch (srv->network_backend_read(srv, con, proxy_con->sock, proxy_con->recv)) { 
    10241024                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. */ 
    10261026                        sess->is_closed = 1; 
    10271027                        proxy_con->send->is_closed = 1; 
     
    10771077 
    10781078        /** 
    1079          * on NETWORK_STATUS_WAIT_FOR_AIO_EVENT we are no allowed to call the state-engine  
     1079         * on NETWORK_STATUS_WAIT_FOR_AIO_EVENT we are not allowed to call the state-engine  
    10801080         * the connection has to sleep until our disk-read is finished  
    10811081         * 
     
    11051105 
    11061106        /* the backend might have been disabled by a full connection pool, re-enable 
    1107          * if there is atleast one active address. 
     1107         * if there is at least one active address. 
    11081108         */ 
    11091109        if (sess->proxy_backend->disabled_addresses <= sess->proxy_backend->address_pool->used) { 
     
    11241124 
    11251125/** 
    1126  * Recycle packend proxy connection. 
     1126 * Recycle backend proxy connection. 
    11271127 *  
    11281128 * 1. close the connection if keep-alive is disable 
     
    11791179 
    11801180                case PROXY_CONNECTION_STATE_CLOSED: 
    1181                 /* user terminate connection and proxy connection is still in CONNECTING mode. 
    1182                  * this happends frequently when backends are slow 
     1181                /* user terminated connection and proxy connection is still in CONNECTING mode. 
     1182                 * this happens frequently when backends are slow 
    11831183                 */ 
    11841184                case PROXY_CONNECTION_STATE_CONNECTING:  
     
    22602260                return HANDLER_GO_ON; 
    22612261        case PROXY_STATE_CONNECTING: 
    2262                 /* this connections is waited 10 seconds to connect to the backend 
     2262                /* this connections has waited 10 seconds to connect to the backend 
    22632263                 * and didn't got a successful connection yet, sending timeout */ 
    22642264                if (srv->cur_ts - sess->connect_start_ts > 10) { 
     
    23102310                                } 
    23112311 
    2312                                 /* no, not really a event, 
     2312                                /* no, not really an event, 
    23132313                                 * we just want to block the outer loop from stepping forward 
    23142314                                 * 
     
    23442344                                } 
    23452345 
    2346                                 /* no, not really a event, 
     2346                                /* no, not really an event, 
    23472347                                 * we just want to block the outer loop from stepping forward 
    23482348                                 * 
     
    23672367                                } 
    23682368 
    2369                                 /* no, not really a event, 
     2369                                /* no, not really an event, 
    23702370                                 * we just want to block the outer loop from stepping forward 
    23712371                                 * 
  • trunk/src/response.c

    r1795 r1858  
    274274 
    275275                if (con->conf.log_request_handling) { 
    276                         TRACE("-- %s", "sanatising URI"); 
     276                        TRACE("-- %s", "sanitizing URI"); 
    277277                        TRACE("URI-path     : %s", BUF_STR(con->uri.path)); 
    278278                }