Changeset 446
- Timestamp:
- 11/02/06 16:22:42 (2 years ago)
- Files:
-
- cherokee/trunk/cherokee/access.c (modified) (1 diff)
- cherokee/trunk/cherokee/admin_client.c (modified) (2 diffs)
- cherokee/trunk/cherokee/avl.c (modified) (2 diffs)
- cherokee/trunk/cherokee/config_entry.c (modified) (1 diff)
- cherokee/trunk/cherokee/downloader.c (modified) (1 diff)
- cherokee/trunk/cherokee/fcgi_manager.c (modified) (4 diffs)
- cherokee/trunk/cherokee/handler.h (modified) (1 diff)
- cherokee/trunk/cherokee/handler_cgi.c (modified) (1 diff)
- cherokee/trunk/cherokee/handler_fastcgi.c (modified) (1 diff)
- cherokee/trunk/cherokee/handler_fcgi.c (modified) (5 diffs)
- cherokee/trunk/cherokee/handler_scgi.c (modified) (1 diff)
- cherokee/trunk/cherokee/module.h (modified) (1 diff)
- cherokee/trunk/cherokee/server-protected.h (modified) (1 diff)
- cherokee/trunk/cherokee/socket.c (modified) (5 diffs)
- cherokee/trunk/cherokee/table.c (modified) (2 diffs)
- cherokee/trunk/cherokee/thread.c (modified) (3 diffs)
- cherokee/trunk/cherokee/util.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/cherokee/access.c
r385 r446 506 506 re = (! IN6_ARE_ADDR_EQUAL (&SOCKET_ADDR_IPv6(sock)->sin6_addr, &IP_NODE(i)->ip.ip6)); 507 507 508 // re = memcmp (&SOCKET_ADDR_IPv6(sock)->sin6_addr, &IP_NODE(i)->ip, 16); 508 /* re = memcmp (&SOCKET_ADDR_IPv6(sock)->sin6_addr, &IP_NODE(i)->ip, 16); */ 509 509 510 /* 510 511 printf ("6 family=%d, ipv6=%d\n", SOCKET_ADDR_IPv6(sock)->sin6_family, ipv6); cherokee/trunk/cherokee/admin_client.c
r385 r446 125 125 #warning "Fix this!" 126 126 127 / / ret = cherokee_downloader_set_fdpoll (downloader, admin->poll_ref, true);128 / / if (unlikely (ret != ret_ok)) return ret;127 /* ret = cherokee_downloader_set_fdpoll (downloader, admin->poll_ref, true); */ 128 /* if (unlikely (ret != ret_ok)) return ret; */ 129 129 130 130 ret = cherokee_downloader_set_url (&admin->downloader, admin->url_ref); … … 134 134 if (unlikely (ret != ret_ok)) return ret; 135 135 136 / / ret = cherokee_downloader_connect_event (downloader, downloader_event_finish, on_downloader_finish, admin);137 / / if (unlikely (ret != ret_ok)) return ret;136 /* ret = cherokee_downloader_connect_event (downloader, downloader_event_finish, on_downloader_finish, admin); */ 137 /* if (unlikely (ret != ret_ok)) return ret; */ 138 138 139 139 return ret_ok; cherokee/trunk/cherokee/avl.c
r283 r446 809 809 right = avl_get_successor (node); 810 810 if (right == tree->root) { 811 / / special case, tree->size == 1811 /* special case, tree->size == 1 */ 812 812 *low = i; 813 813 *high = i + 1; … … 869 869 right = avl_get_successor (high_node); 870 870 if (right == tree->root) { 871 / / special case, tree->size == 1871 /* special case, tree->size == 1 */ 872 872 j = i + 1; 873 873 } else { cherokee/trunk/cherokee/config_entry.c
r387 r446 149 149 } 150 150 151 / / printf ("same_type=%d, overwrite=%d, prio=%d\n", same_type, overwrite, main->priority);151 /* printf ("same_type=%d, overwrite=%d, prio=%d\n", same_type, overwrite, main->priority); */ 152 152 153 153 /* If a temporary config_entry inherits from valid entry, it will cherokee/trunk/cherokee/downloader.c
r342 r446 428 428 ret = cherokee_post_walk_to_fd (downloader->post, downloader->socket.socket, NULL, NULL); 429 429 430 / / ret = send_post (downloader);430 /* ret = send_post (downloader); */ 431 431 /* ret = downloader_send_buffer (downloader, downloader->post_ref); */ 432 432 if (unlikely(ret != ret_ok)) return ret; cherokee/trunk/cherokee/fcgi_manager.c
r430 r446 100 100 } 101 101 102 / /printf ("mgr->conn.id2conn[id].conn %p, mgr->conn.id2conn[id].eof %d -- use=%d\n",103 // mgr->conn.id2conn[id].conn, mgr->conn.id2conn[id].eof, mgr->conn.len); 102 /* printf ("mgr->conn.id2conn[id].conn %p, mgr->conn.id2conn[id].eof %d -- use=%d\n", 103 mgr->conn.id2conn[id].conn, mgr->conn.id2conn[id].eof, mgr->conn.len); */ 104 104 } 105 105 … … 295 295 296 296 case FCGI_STDOUT: 297 / / printf ("READ:STDOUT id=%d gen=%d eof=%d (%s): %d", id, hdl->generation, CGI_BASE(hdl)->got_eof, conn->query_string.buf, len);297 /* printf ("READ:STDOUT id=%d gen=%d eof=%d (%s): %d", id, hdl->generation, CGI_BASE(hdl)->got_eof, conn->query_string.buf, len); */ 298 298 cherokee_buffer_add (outbuf, data, len); 299 299 break; … … 312 312 update_conn_list_lenght (mgr, id); 313 313 314 / / printf ("READ:END id=%d gen=%d", id, hdl->generation);314 /* printf ("READ:END id=%d gen=%d", id, hdl->generation); */ 315 315 break; 316 316 … … 321 321 go_out: 322 322 cherokee_buffer_move_to_begin (inbuf, len + FCGI_HEADER_LEN + padding); 323 / / printf ("- FCGI quedan %d\n", inbuf->len);323 /* printf ("- FCGI quedan %d\n", inbuf->len); */ 324 324 return ret_eagain; 325 325 cherokee/trunk/cherokee/handler.h
r387 r446 52 52 hsupport_range = 1 << 2, /* Can handle "Range: bytes=" requests */ 53 53 hsupport_error = 1 << 3, /* It is an error handler */ 54 hsupport_dont_add_headers = 1 << 4 ,/* The server shouldn't add any headers */54 hsupport_dont_add_headers = 1 << 4 /* The server shouldn't add any headers */ 55 55 } cherokee_handler_support_t; 56 56 cherokee/trunk/cherokee/handler_cgi.c
r387 r446 119 119 /* Virtual methods 120 120 */ 121 MODULE(n)->init = ( handler_func_init_t) cherokee_handler_cgi_init;121 MODULE(n)->init = (module_func_init_t) cherokee_handler_cgi_init; 122 122 MODULE(n)->free = (module_func_free_t) cherokee_handler_cgi_free; 123 123 cherokee/trunk/cherokee/handler_fastcgi.c
r430 r446 46 46 cherokee_balancer_free (props->balancer); 47 47 48 // TODO: Free the structure content 48 /* TODO: Free the structure content 49 */ 49 50 return cherokee_handler_cgi_base_props_free (PROP_CGI_BASE(props)); 50 51 } cherokee/trunk/cherokee/handler_fcgi.c
r430 r446 91 91 data = inbuf->buf + FCGI_HEADER_LEN; 92 92 93 / / printf ("have %d, hdr=%d exp_len=%d pad=%d\n", inbuf->len, FCGI_HEADER_LEN, len, padding);93 /* printf ("have %d, hdr=%d exp_len=%d pad=%d\n", inbuf->len, FCGI_HEADER_LEN, len, padding); */ 94 94 95 95 /* Is the package complete? 96 96 */ 97 97 if (len + padding > inbuf->len - FCGI_HEADER_LEN) { 98 / / printf ("Incomplete: %d < %d\n", len + padding, inbuf->len - FCGI_HEADER_LEN);98 /* printf ("Incomplete: %d < %d\n", len + padding, inbuf->len - FCGI_HEADER_LEN); */ 99 99 return ret_ok; 100 100 } … … 104 104 switch (type) { 105 105 case FCGI_STDERR: 106 / / printf ("READ:STDERR (%d): %s", len, data?data:"");106 /* printf ("READ:STDERR (%d): %s", len, data?data:""); */ 107 107 108 108 if (CONN_VSRV(conn)->logger != NULL) { … … 117 117 118 118 case FCGI_STDOUT: 119 / / printf ("READ:STDOUT eof=%d: %d", CGI_BASE(hdl)->got_eof, len);119 /* printf ("READ:STDOUT eof=%d: %d", CGI_BASE(hdl)->got_eof, len); */ 120 120 cherokee_buffer_add (outbuf, data, len); 121 121 break; … … 130 130 131 131 HDL_CGI_BASE(hdl)->got_eof = true; 132 / / printf ("READ:END");132 /* printf ("READ:END"); */ 133 133 break; 134 134 … … 138 138 139 139 cherokee_buffer_move_to_begin (inbuf, len + FCGI_HEADER_LEN + padding); 140 / / printf ("- FCGI quedan %d\n", inbuf->len);140 /* printf ("- FCGI quedan %d\n", inbuf->len); */ 141 141 return ret_eagain; 142 142 } cherokee/trunk/cherokee/handler_scgi.c
r429 r446 44 44 cherokee_balancer_free (props->balancer); 45 45 46 // TODO: Free scgi_env_ref 46 /* TODO: Free scgi_env_ref 47 */ 47 48 48 49 return cherokee_handler_cgi_base_props_free (PROP_CGI_BASE(props)); cherokee/trunk/cherokee/module.h
r387 r446 51 51 /* Callback function prototipes 52 52 */ 53 typedef void * module_func_init_t; 53 54 typedef ret_t (* module_func_new_t) (void *); 54 55 typedef ret_t (* module_func_free_t) (void *); cherokee/trunk/cherokee/server-protected.h
r441 r446 171 171 */ 172 172 cherokee_config_node_t config; 173 // char *config_file;174 173 char *icons_file; 175 174 cherokee/trunk/cherokee/socket.c
r429 r446 214 214 cherokee_socket_t *socket = SOCKET(ptr); 215 215 216 / / printf ("db::retrieve\n");216 /* printf ("db::retrieve\n"); */ 217 217 218 218 if (unlikely (socket->vserver_ref == NULL)) { … … 239 239 cherokee_socket_t *socket = SOCKET(ptr); 240 240 241 / / printf ("db::remove\n");241 /* printf ("db::remove\n"); */ 242 242 243 243 if (unlikely (socket->vserver_ref == NULL)) { … … 247 247 248 248 cache = &socket->vserver_ref->session_cache; 249 / / ret = cherokee_session_cache_del (cache, key.data, key.size);249 /* ret = cherokee_session_cache_del (cache, key.data, key.size); */ 250 250 251 251 ret = cherokee_table_del (cache, (char *)key.data, NULL); … … 263 263 cherokee_table_t *cache; 264 264 cherokee_socket_t *socket = SOCKET(ptr); 265 // printf ("db::store\n"); 265 266 /* printf ("db::store\n"); */ 266 267 267 268 if (socket->vserver_ref == NULL) { … … 277 278 memcpy (n, &data, sizeof (gnutls_datum)); 278 279 279 // ret = cherokee_session_cache_add (cache, key.data, key.size, data.data, data.size); 280 // cherokee_session_cache_add (cache, key 280 /* ret = cherokee_session_cache_add (cache, key.data, key.size, data.data, data.size); 281 cherokee_session_cache_add (cache, key */ 282 281 283 ret = cherokee_table_add (cache, (char *)key.data, n); 282 284 cherokee/trunk/cherokee/table.c
r433 r446 34 34 equal (void *avl_param, void *key, void *val) 35 35 { 36 / / printf ("equal (%s, %s) = %d\n", key, val, strcmp((const char *)key, (const char *)val));36 /* printf ("equal (%s, %s) = %d\n", key, val, strcmp((const char *)key, (const char *)val)); */ 37 37 return strcmp((const char *)key, (const char *)val); 38 38 } … … 195 195 foreach_wrapper (void *key, void *val, void *iter_arg) 196 196 { 197 ((cherokee_table_foreach_func_t)iter_arg) (key, val); 197 cherokee_table_foreach_func_t func = (cherokee_table_foreach_func_t)iter_arg; 198 199 func (key, val); 198 200 return 0; 199 201 } cherokee/trunk/cherokee/thread.c
r445 r446 1594 1594 int re; 1595 1595 ret_t ret; 1596 // int unlock2 = 0;1597 1596 int socket1; 1598 1597 int socket2; … … 1896 1895 cherokee_fdpoll_del (thd->fdpoll, conn->polling_fd); 1897 1896 1898 / / printf ("- reactive_conn_from_polling %p, multiple=%d del=%d\n", conn, conn->polling_multiple, del);1897 /* printf ("- reactive_conn_from_polling %p, multiple=%d del=%d\n", conn, conn->polling_multiple, del); */ 1899 1898 1900 1899 cherokee_fdpoll_add (thd->fdpoll, socket->socket, socket->status); … … 1920 1919 add_fd = check_addition_multiple_fd (thd, fd); 1921 1920 1922 / / printf ("+ move_connection_to_polling %p, multiple=%d add=%d fd=%d\n", conn, multiple, add_fd, fd);1921 /* printf ("+ move_connection_to_polling %p, multiple=%d add=%d fd=%d\n", conn, multiple, add_fd, fd); */ 1923 1922 1924 1923 /* Remove the connection file descriptor and add the new one cherokee/trunk/cherokee/util.c
r444 r446 1215 1215 } 1216 1216 1217 // TODO: Duplicate char **tmp->gr_mem 1217 /* TODO: Duplicate char **tmp->gr_mem 1218 */ 1218 1219 1219 1220 CHEROKEE_MUTEX_UNLOCK (&__global_getgrnam_mutex);