Changeset 1807
- Timestamp:
- 08/14/08 11:38:44 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/thread.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1806 r1807 1 1 2008-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. 2 5 3 6 * cherokee/connection.c: Allows 3xx replies to keep the connection cherokee/trunk/cherokee/thread.c
r1788 r1807 1496 1496 cherokee_bogotime_try_update(); 1497 1497 1498 /* Reset the server socket.1499 * // cherokee_fdpoll_reset (thd->fdpoll, S_SOCKET_FD(srv->socket));1500 */1501 1498 #if 0 1502 1499 if (unlikely (cherokee_fdpoll_is_full (thd->fdpoll))) { … … 1516 1513 if (re <= 0) 1517 1514 goto out; 1515 1516 update_bogo_now (thd); 1518 1517 1519 1518 /* If the thread is full of connections, it should not … … 1567 1566 return ret_error; 1568 1567 } 1569 /* cherokee_fdpoll_reset (thd->fdpoll, socket); 1570 */ 1568 1571 1569 cherokee_fdpoll_watch (thd->fdpoll, fdwatch_msecs); 1572 1573 /* This thread might be blocked for long long time, so it's1574 * really important to update the local bogo now values before1575 * accepting new connections. Otherwhise, it will use an old1576 * value for the new connections timeout which might be dropped1577 * in the next step.1578 */1579 1570 update_bogo_now (thd); 1580 1571 … … 1626 1617 1627 1618 cherokee_fdpoll_watch (thd->fdpoll, fdwatch_msecs); 1619 update_bogo_now (thd); 1628 1620 1629 1621 /* It should either accept o discard a connection … … 1691 1683 */ 1692 1684 cherokee_fdpoll_watch (thd->fdpoll, fdwatch_msecs); 1685 update_bogo_now (thd); 1693 1686 1694 1687 /* accept o discard a connections … … 1778 1771 } 1779 1772 1780 /* cherokee_fdpoll_reset (thd->fdpoll, socket1); */1781 1782 1783 1773 /* Try to lock the optional groups 1784 1774 */ … … 1792 1782 return ret_error; 1793 1783 } 1794 /* cherokee_fdpoll_reset (thd->fdpoll, socket2);1795 */1796 1784 } 1797 1785 #endif … … 1800 1788 */ 1801 1789 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 */1806 1790 update_bogo_now (thd); 1807 1791 … … 1908 1892 1909 1893 out: 1894 update_bogo_now (thd); 1895 1910 1896 /* Adquire the ownership of the thread 1911 1897 */