Changeset 732

Show
Ignore:
Timestamp:
04/30/07 20:06:01 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r731 r732  
    112007-04-30  A.D.F  <adefacc@tin.it> 
    22 
     3        * cherokee/thread.c: 
     4        - substitute 0 for FDPOLL_MODE_READ in remaining 
     5          cherokee_fdpoll_check() calls; 
     6        - spaces / indentation cleanup.  
     7         
    38        * cherokee/fdpoll.h: 
    49        - added new macros FDPOLL_MODE_*. 
  • cherokee/trunk/cherokee/thread.c

    r731 r732  
    9090         */ 
    9191        memcpy (&thd->bogo_now_tm, &srv->bogo_now_tm, sizeof(struct tm)); 
    92          
     92 
    9393        /* Update cherokee_buffer_t 
    9494         */ 
    9595        cherokee_buffer_clean (&thd->bogo_now_string); 
    9696        cherokee_buffer_add_buffer (&thd->bogo_now_string, &srv->bogo_now_string); 
    97          
     97 
    9898} 
    9999 
     
    550550                /* Check the "extra" file descriptor 
    551551                 */ 
    552                 re = cherokee_fdpoll_check (thd->fdpoll, conn->polling_fd, 0); 
     552                re = cherokee_fdpoll_check (thd->fdpoll, conn->polling_fd, FDPOLL_MODE_READ); 
    553553                switch (re) { 
    554554                case -1: 
     
    13171317        cherokee_sockaddr_t    new_sa; 
    13181318        cherokee_connection_t *new_conn; 
    1319          
     1319 
    13201320        /* Return if there're no new connections 
    13211321         */ 
    1322         if (cherokee_fdpoll_check (thd->fdpoll, srv_socket, 0) == 0) { 
     1322        if (cherokee_fdpoll_check (thd->fdpoll, srv_socket, FDPOLL_MODE_READ) == 0) { 
    13231323                return 0; 
    13241324        } 
    1325          
     1325 
    13261326        /* Try to get a new connection 
    13271327         */ 
     
    13501350                new_conn->phase = phase_tls_handshake; 
    13511351        } 
    1352          
     1352 
    13531353        /* It is about to add a new connection to the thread,  
    13541354         * so it MUST adquire the thread ownership now. 
     
    17671767                    (thd->polling_list_num == 0) && (!dont_block)) { 
    17681768                        step_MULTI_THREAD_TLS_block (thd, fdwatch_msecs,  
    1769                                                     S_SOCKET_FD(srv->socket), &THREAD_SRV(thd)->accept_mutex,          
    1770                                                     S_SOCKET_FD(srv->socket_tls), &THREAD_SRV(thd)->accept_tls_mutex); 
     1769                            S_SOCKET_FD(srv->socket), &THREAD_SRV(thd)->accept_mutex,          
     1770                            S_SOCKET_FD(srv->socket_tls), &THREAD_SRV(thd)->accept_tls_mutex); 
    17711771                } else { 
    17721772                        step_MULTI_THREAD_TLS_nonblock (thd, fdwatch_msecs,  
    1773                                                        S_SOCKET_FD(srv->socket), &THREAD_SRV(thd)->accept_mutex,       
    1774                                                        S_SOCKET_FD(srv->socket_tls), &THREAD_SRV(thd)->accept_tls_mutex); 
     1773                            S_SOCKET_FD(srv->socket), &THREAD_SRV(thd)->accept_mutex,          
     1774                            S_SOCKET_FD(srv->socket_tls), &THREAD_SRV(thd)->accept_tls_mutex); 
    17751775                } 
    17761776