Changeset 1849

Show
Ignore:
Timestamp:
05/09/2007 05:27:43 AM (16 months ago)
Author:
jan
Message:

don't announce fastcgi-keepalive if it is disabled in the config.
- fixed a problems with rails where unix-sockets aren't monitored for

remote-close

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/mod_proxy_backend_fastcgi.c

    r1848 r1849  
    355355        beginRecord.body.roleB1 = 0; 
    356356#ifdef PROXY_FASTCGI_USE_KEEP_ALIVE 
    357         beginRecord.body.flags = FCGI_KEEP_CONN; 
     357        if (p->conf.max_keep_alive_requests && p->conf.max_pool_size) { 
     358                /** 
     359                 * only announce keep-alive if we really can handle it 
     360                 */ 
     361                beginRecord.body.flags = FCGI_KEEP_CONN; 
     362        } else { 
     363                beginRecord.body.flags = 0; 
     364        } 
    358365#else 
    359366        beginRecord.body.flags = 0;