diff --git a/calexium_lib/web/CXM_multihost_http_server.anubis b/calexium_lib/web/CXM_multihost_http_server.anubis index 5f997fa..afa8ea6 100644 --- a/calexium_lib/web/CXM_multihost_http_server.anubis +++ b/calexium_lib/web/CXM_multihost_http_server.anubis @@ -2260,7 +2260,7 @@ define One http_info(ip_addr,uri,headers,generate_tt), all_web_args, is_SSL(connection)), - print_delta("After page generation"); + //print_delta("After page generation"); if answer_headers_body is (additional_headers,answer_body) then forget(reliable_write(connection, [ "HTTP/1.1 200 OK", crlf, @@ -2268,8 +2268,8 @@ define One format_headers(standard_headers_for_html(length(answer_body),charset(desc))), format_headers(additional_headers), crlf . - answer_body])); - print_delta("After sending page") + answer_body])) + //print_delta("After sending page") ) else (send_file(desc, connection, @@ -2281,8 +2281,9 @@ define One not_found then failure, found(v) then success(v) }, - (One u) |-> before_send_file(desc)(all_web_args)); - print_delta("After sending file"))). + (One u) |-> before_send_file(desc)(all_web_args)) + //print_delta("After sending file") + )). @@ -2965,40 +2966,40 @@ define One Bool is_https, DenialOfService dos ) = - t0 <- (UTime)now; + //t0 <- (UTime)now; with start_time = (Int32)now, sttm <- start_time; - println("Request time: " + format_http_date(start_time)); + //println("Request time: " + format_http_date(start_time)); if dos is denial_of_service(mc_v,rld_v,hd_v,ad_v,ld_v,ra_v) then if remote_IP_address_and_port(connection.conn) is (ip_addr,port) then if read_request_line(connection,start_time+*rld_v,dos) is { error(msg) then print(format(msg)), ok(request_line) then - print_delta("read_request_line"); + //print_delta("read_request_line"); if read_http_headers(connection,start_time+*hd_v,dos) is { error(msg) then print(format(msg)), - ok(headers) then print_delta("read_http_headers"); + ok(headers) then //print_delta("read_http_headers"); if get_site(headers,sites) is { failure then unique, success(p) then if p is (host_name,desc) then - print_delta("get_site"); + //print_delta("get_site"); if get_body_size(headers) is { error(msg) then log_journal_msg(desc,format(msg)), ok(body_size) then - print_delta("get_body_size"); + //print_delta("get_body_size"); if read_http_body(connection,body_size,constant_byte_array(0,0),1000) is { error(msg) then log_journal_msg(desc,format(msg)), ok(body) then - print_delta("before send_answer"); + //print_delta("before send_answer"); send_answer(host_name, desc,connection.conn, request_line, headers, body, - make_generate_trust_ticket(dos)); - with duration = (UTime) now - *t0, - println("Request duration: " + utime_to_string(duration)) + make_generate_trust_ticket(dos)) + //with duration = (UTime) now - *t0, + //println("Request duration: " + utime_to_string(duration)) //println("BufferRead duration: " + utime_to_string(*t1)); //println("next_char duration: " + utime_to_string(*t2)) } -- libgit2 0.21.4