Changeset 642
- Timestamp:
- 02/10/07 09:54:44 (2 years ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/connection-protected.h (modified) (2 diffs)
- cherokee/trunk/cherokee/connection.c (modified) (2 diffs)
- cherokee/trunk/cherokee/macros.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r640 r642 1 2007-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 1 16 2007-02-03 A.D.F <adefacc@tin.it> 2 17 cherokee/trunk/cherokee/connection-protected.h
r639 r642 84 84 typedef enum { 85 85 conn_op_nothing = 0, 86 conn_op_log_at_end = 1,87 conn_op_root_index = 1 << 1,88 conn_op_tcp_cork = 1 << 286 conn_op_log_at_end = (1 << 0), 87 conn_op_root_index = (1 << 1), 88 conn_op_tcp_cork = (1 << 2) 89 89 } cherokee_connection_options_t; 90 90 … … 107 107 cherokee_socket_t socket; 108 108 cherokee_http_upgrade_t upgrade; 109 109 cherokee_connection_options_t options; 110 110 111 cherokee_logger_t *logger_ref; 111 112 cherokee_handler_t *handler; 112 cherokee_connection_options_t options; 113 113 114 114 /* Buffers 115 115 */ cherokee/trunk/cherokee/connection.c
r639 r642 98 98 n->req_auth_type = http_auth_nothing; 99 99 n->upgrade = http_upgrade_nothing; 100 n->options = conn_op_ nothing;100 n->options = conn_op_log_at_end; 101 101 n->handler = NULL; 102 102 n->encoder = NULL; … … 227 227 conn->req_auth_type = http_auth_nothing; 228 228 conn->upgrade = http_upgrade_nothing; 229 conn->options = conn_op_ nothing;229 conn->options = conn_op_log_at_end; 230 230 conn->error_code = http_ok; 231 231 conn->range_start = 0; cherokee/trunk/cherokee/macros.h
r639 r642 238 238 */ 239 239 #define BIT_SET(var,bit) var |= bit 240 #define BIT_UNSET(var,bit) var &= (~bit)240 #define BIT_UNSET(var,bit) var &= ~(bit) 241 241 242 242 /* Format string for off_t and size_t