Changeset 642

Show
Ignore:
Timestamp:
02/10/07 09:54:44 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r640 r642  
     12007-02-03  A.D.F  <adefacc@tin.it> 
     2        * cherokee/macros.h: 
     3        - micro-fix to BIT_UNSET() macro in order 
     4          to work properly even with arguments like these: 
     5                BIT_UNSET(var, opt1|opt2); 
     6 
     7        * cherokee/connection-protected: 
     8        - small "cosmetic" cleanups, move field "options" 
     9          near field upgrade; 
     10        - etc. 
     11 
     12        * cherokee/connection.c: 
     13        - fix, "log_at_end" must be set to true in init / cleanup code, 
     14          otherwise logging does not work. 
     15 
    1162007-02-03  A.D.F  <adefacc@tin.it> 
    217 
  • cherokee/trunk/cherokee/connection-protected.h

    r639 r642  
    8484typedef enum { 
    8585        conn_op_nothing    = 0, 
    86         conn_op_log_at_end = 1
    87         conn_op_root_index = 1 << 1
    88         conn_op_tcp_cork   = 1 << 2 
     86        conn_op_log_at_end = (1 << 0)
     87        conn_op_root_index = (1 << 1)
     88        conn_op_tcp_cork   = (1 << 2) 
    8989} cherokee_connection_options_t; 
    9090 
     
    107107        cherokee_socket_t             socket; 
    108108        cherokee_http_upgrade_t       upgrade; 
    109                  
     109        cherokee_connection_options_t options; 
     110 
    110111        cherokee_logger_t            *logger_ref; 
    111112        cherokee_handler_t           *handler; 
    112         cherokee_connection_options_t options; 
    113          
     113 
    114114        /* Buffers 
    115115         */ 
  • cherokee/trunk/cherokee/connection.c

    r639 r642  
    9898        n->req_auth_type     = http_auth_nothing; 
    9999        n->upgrade           = http_upgrade_nothing; 
    100         n->options           = conn_op_nothing
     100        n->options           = conn_op_log_at_end
    101101        n->handler           = NULL;  
    102102        n->encoder           = NULL; 
     
    227227        conn->req_auth_type     = http_auth_nothing; 
    228228        conn->upgrade           = http_upgrade_nothing; 
    229         conn->options           = conn_op_nothing
     229        conn->options           = conn_op_log_at_end
    230230        conn->error_code        = http_ok; 
    231231        conn->range_start       = 0; 
  • cherokee/trunk/cherokee/macros.h

    r639 r642  
    238238 */ 
    239239#define BIT_SET(var,bit)    var |= bit 
    240 #define BIT_UNSET(var,bit)  var &= (~bit) 
     240#define BIT_UNSET(var,bit)  var &= ~(bit) 
    241241 
    242242/* Format string for off_t and size_t