Changeset 1807

Show
Ignore:
Timestamp:
08/14/08 11:38:44 (3 months ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r1806 r1807  
    112008-08-14  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/thread.c (cherokee_thread_step_MULTI_THREAD): Fixes a 
     4        problem with the Keep-Alive timeout. 
    25 
    36        * cherokee/connection.c: Allows 3xx replies to keep the connection 
  • cherokee/trunk/cherokee/thread.c

    r1788 r1807  
    14961496        cherokee_bogotime_try_update(); 
    14971497 
    1498         /* Reset the server socket. 
    1499          * // cherokee_fdpoll_reset (thd->fdpoll, S_SOCKET_FD(srv->socket)); 
    1500          */ 
    15011498#if 0 
    15021499        if (unlikely (cherokee_fdpoll_is_full (thd->fdpoll))) { 
     
    15161513        if (re <= 0) 
    15171514                goto out; 
     1515 
     1516        update_bogo_now (thd); 
    15181517 
    15191518        /* If the thread is full of connections, it should not 
     
    15671566                return ret_error; 
    15681567        } 
    1569         /* cherokee_fdpoll_reset (thd->fdpoll, socket); 
    1570          */ 
     1568 
    15711569        cherokee_fdpoll_watch (thd->fdpoll, fdwatch_msecs); 
    1572          
    1573         /* This thread might be blocked for long long time, so it's 
    1574          * really important to update the local bogo now values before 
    1575          * accepting new connections.  Otherwhise, it will use an old 
    1576          * value for the new connections timeout which might be dropped 
    1577          * in the next step. 
    1578          */ 
    15791570        update_bogo_now (thd); 
    15801571 
     
    16261617 
    16271618        cherokee_fdpoll_watch (thd->fdpoll, fdwatch_msecs); 
     1619        update_bogo_now (thd); 
    16281620 
    16291621        /* It should either accept o discard a connection 
     
    16911683         */ 
    16921684        cherokee_fdpoll_watch (thd->fdpoll, fdwatch_msecs); 
     1685        update_bogo_now (thd); 
    16931686                 
    16941687        /* accept o discard a connections 
     
    17781771        } 
    17791772 
    1780         /* cherokee_fdpoll_reset (thd->fdpoll, socket1); */ 
    1781           
    1782  
    17831773        /* Try to lock the optional groups 
    17841774         */ 
     
    17921782                        return ret_error; 
    17931783                } 
    1794                 /* cherokee_fdpoll_reset (thd->fdpoll, socket2); 
    1795                  */ 
    17961784        } 
    17971785#endif 
     
    18001788         */ 
    18011789        cherokee_fdpoll_watch (thd->fdpoll, fdwatch_msecs); 
    1802  
    1803         /* Update the thread time values before accept new connections. 
    1804          * This ensures an updated timeout value for it. 
    1805          */ 
    18061790        update_bogo_now (thd); 
    18071791                 
     
    19081892         
    19091893out: 
     1894        update_bogo_now (thd); 
     1895 
    19101896        /* Adquire the ownership of the thread 
    19111897         */