Changeset 488

Show
Ignore:
Timestamp:
07/31/2005 10:15:35 AM (3 years ago)
Author:
jan
Message:

handle 'proxy not reachable'

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.3.x/src/mod_proxy.c

    r370 r488  
    992992                                        "proxy: fdevent-hup", hctx->state); 
    993993                } 
     994                 
     995                if (hctx->state == PROXY_STATE_CONNECT) { 
     996                        /* connect() -> EINPROGRESS -> HUP */ 
     997                         
     998                        /** 
     999                         * what is proxy is doing if it can't reach the next hop ?  
     1000                         *  
     1001                         */ 
     1002                         
     1003                        proxy_connection_close(srv, hctx); 
     1004                        joblist_append(srv, con); 
     1005                         
     1006                        con->http_status = 503; 
     1007                        con->mode = DIRECT; 
     1008                         
     1009                        return HANDLER_FINISHED; 
     1010                } 
    9941011 
    9951012                con->file_finished = 1;