Changeset 1562

Show
Ignore:
Timestamp:
06/17/08 13:17:51 (3 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1561 r1562  
    112008-06-17  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/thread.c (phase_to_str): It only needed to be compiled 
     4        when TRACE was enabled. Fixes compilation warning. 
     5 
     6        * cherokee/macros.h (IOCACHE_DEFAULT_CLEAN_ELAPSE): Changed from 2 
     7        to 20. It should have been set to that value. We must have made a 
     8        mistake during a test and the wrong value got into the repository. 
    29 
    310        * admin/PageEntry.py, admin/Module.py, admin/ModuleScgi.py, 
  • cherokee/trunk/cherokee/macros.h

    r1477 r1562  
    127127 
    128128#define IOCACHE_MAX_FILE_SIZE            50000 
    129 #define IOCACHE_DEFAULT_CLEAN_ELAPSE     2 
     129#define IOCACHE_DEFAULT_CLEAN_ELAPSE     20 
    130130 
    131131#define EXIT_CANT_CREATE_SERVER_SOCKET4 10 
  • cherokee/trunk/cherokee/server.c

    r1506 r1562  
    131131        n->tls_enabled     = false; 
    132132 
    133         n->fdwatch_msecs   = 999
     133        n->fdwatch_msecs   = 1000
    134134 
    135135        n->start_time      = time(NULL); 
  • cherokee/trunk/cherokee/thread.c

    r1556 r1562  
    4949 
    5050 
     51#ifdef TRACE 
    5152static char * 
    5253phase_to_str (cherokee_connection_phase_t phase) 
     
    7172        return NULL; 
    7273} 
     74#endif 
    7375 
    7476static void 
     
    628630process_active_connections (cherokee_thread_t *thd) 
    629631{ 
     632        int                    re; 
    630633        ret_t                  ret; 
    631634        off_t                  len; 
     
    664667                 *     and it's not reading header or there is no more buffered data. 
    665668                 */ 
    666                 if ( conn->phase != phase_shutdown && 
    667                         (conn->phase != phase_reading_header || 
    668                          conn->incoming_header.len < 1)) { 
    669                         int num; 
    670  
    671                         num = cherokee_fdpoll_check (thd->fdpoll,  
    672                                                      SOCKET_FD(&conn->socket),  
    673                                                      SOCKET_STATUS(&conn->socket)); 
    674                         switch (num) { 
     669                if ((conn->phase != phase_shutdown) && 
     670                    (conn->phase != phase_reading_header || conn->incoming_header.len <= 0)) 
     671                { 
     672                        re = cherokee_fdpoll_check (thd->fdpoll,  
     673                                                    SOCKET_FD(&conn->socket),  
     674                                                    SOCKET_STATUS(&conn->socket)); 
     675                        switch (re) { 
    675676                        case -1: 
    676677                                conns_freed++;