You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2013/08/03 22:51:35 UTC
[26/52] [abbrv] git commit: TS-1255 Set all HTTP configs to their
defaults, to be consistent
TS-1255 Set all HTTP configs to their defaults, to be consistent
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/db2bc67c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/db2bc67c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/db2bc67c
Branch: refs/heads/3.3.x
Commit: db2bc67cf2c6679c50cb84a7f1fb2dfacaa80eca
Parents: bb6939c
Author: Leif Hedstrom <zw...@apache.org>
Authored: Sat Jul 27 03:35:04 2013 -0600
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Thu Aug 1 22:42:48 2013 +0200
----------------------------------------------------------------------
proxy/http/HttpConfig.h | 125 ++++++++++++++++++++-----------------------
1 file changed, 59 insertions(+), 66 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/db2bc67c/proxy/http/HttpConfig.h
----------------------------------------------------------------------
diff --git a/proxy/http/HttpConfig.h b/proxy/http/HttpConfig.h
index cbee1fd..35508a8 100644
--- a/proxy/http/HttpConfig.h
+++ b/proxy/http/HttpConfig.h
@@ -400,43 +400,36 @@ struct HttpConfigPortRange
// to be overridable per transaction more easily.
struct OverridableHttpConfigParams {
OverridableHttpConfigParams()
- : maintain_pristine_host_hdr(0), chunking_enabled(0),
- negative_caching_enabled(0), cache_when_to_revalidate(0),
- keep_alive_enabled_in(0), keep_alive_enabled_out(0), keep_alive_post_out(0),
- share_server_sessions(0), fwd_proxy_auth_to_parent(0),
- insert_age_in_response(1),
- anonymize_remove_from(0), anonymize_remove_referer(0), anonymize_remove_user_agent(0),
- anonymize_remove_cookie(0), anonymize_remove_client_ip(0), anonymize_insert_client_ip(1),
- proxy_response_server_enabled(0), insert_squid_x_forwarded_for(0),
- send_http11_requests(3),
- cache_http(0), cache_cluster_cache_local(0), cache_ignore_client_no_cache(0), cache_ignore_client_cc_max_age(1),
- cache_ims_on_client_no_cache(0), cache_ignore_server_no_cache(0), cache_responses_to_cookies(0),
- cache_ignore_auth(0), cache_urls_that_look_dynamic(0), cache_required_headers(0), cache_range_lookup(1),
- insert_request_via_string(0), insert_response_via_string(0), doc_in_cache_skip_dns(1),
- negative_caching_lifetime(0),
- sock_recv_buffer_size_out(0), sock_send_buffer_size_out(0), sock_option_flag_out(0),
- sock_packet_mark_out(0), sock_packet_tos_out(0),
- server_tcp_init_cwnd(0),
- cache_heuristic_min_lifetime(0), cache_heuristic_max_lifetime(0),
- cache_guaranteed_min_lifetime(0), cache_guaranteed_max_lifetime(0), cache_max_stale_age(0),
- keep_alive_no_activity_timeout_in(0),
- keep_alive_no_activity_timeout_out(0),
- transaction_no_activity_timeout_in(0), transaction_no_activity_timeout_out(0),
- transaction_active_timeout_out(0),
- origin_max_connections(0),
- connect_attempts_max_retries(0), connect_attempts_max_retries_dead_server(0),
- connect_attempts_rr_retries(0), connect_attempts_timeout(0),
- post_connect_attempts_timeout(0),
- down_server_timeout(0), client_abort_threshold(0),
- freshness_fuzz_time(0), freshness_fuzz_min_time(0),
- max_cache_open_read_retries(0), cache_open_read_retry_time(0),
- background_fill_active_timeout(0),
- http_chunking_size(0), flow_high_water_mark(0), flow_low_water_mark(0),
-
- // Strings / floats must come last
- proxy_response_server_string(NULL), proxy_response_server_string_len(0),
- cache_heuristic_lm_factor(0.0), freshness_fuzz_prob(0.0),
- background_fill_threshold(0.5)
+ : maintain_pristine_host_hdr(1), chunking_enabled(1),
+ negative_caching_enabled(0), cache_when_to_revalidate(0),
+ keep_alive_enabled_in(1), keep_alive_enabled_out(1), keep_alive_post_out(0),
+ share_server_sessions(2), fwd_proxy_auth_to_parent(0), insert_age_in_response(1),
+ anonymize_remove_from(0), anonymize_remove_referer(0), anonymize_remove_user_agent(0),
+ anonymize_remove_cookie(0), anonymize_remove_client_ip(0), anonymize_insert_client_ip(1),
+ proxy_response_server_enabled(1), insert_squid_x_forwarded_for(1), send_http11_requests(1),
+ cache_http(1), cache_cluster_cache_local(0), cache_ignore_client_no_cache(1), cache_ignore_client_cc_max_age(0),
+ cache_ims_on_client_no_cache(1), cache_ignore_server_no_cache(0), cache_responses_to_cookies(1),
+ cache_ignore_auth(0), cache_urls_that_look_dynamic(1), cache_required_headers(2), cache_range_lookup(1),
+ insert_request_via_string(1), insert_response_via_string(0), doc_in_cache_skip_dns(1),
+ negative_caching_lifetime(1800),
+ sock_recv_buffer_size_out(0), sock_send_buffer_size_out(0), sock_option_flag_out(0),
+ sock_packet_mark_out(0), sock_packet_tos_out(0), server_tcp_init_cwnd(0),
+ cache_heuristic_min_lifetime(3600), cache_heuristic_max_lifetime(86400),
+ cache_guaranteed_min_lifetime(0), cache_guaranteed_max_lifetime(31536000), cache_max_stale_age(604800),
+ keep_alive_no_activity_timeout_in(115), keep_alive_no_activity_timeout_out(120),
+ transaction_no_activity_timeout_in(30), transaction_no_activity_timeout_out(30),
+ transaction_active_timeout_out(0), origin_max_connections(0),
+ connect_attempts_max_retries(0), connect_attempts_max_retries_dead_server(3),
+ connect_attempts_rr_retries(3), connect_attempts_timeout(30),
+ post_connect_attempts_timeout(1800), down_server_timeout(300), client_abort_threshold(10),
+ freshness_fuzz_time(240), freshness_fuzz_min_time(0),
+ max_cache_open_read_retries(-1), cache_open_read_retry_time(10), background_fill_active_timeout(60),
+ http_chunking_size(4096), flow_high_water_mark(0), flow_low_water_mark(0),
+
+ // Strings / floats must come last
+ proxy_response_server_string(NULL), proxy_response_server_string_len(0),
+ cache_heuristic_lm_factor(0.10), freshness_fuzz_prob(0.005),
+ background_fill_threshold(0.5)
{ }
// A few rules here:
@@ -887,7 +880,7 @@ extern volatile int32_t icp_dynamic_enabled;
/////////////////////////////////////////////////////////////
inline
HttpConfigParams::HttpConfigParams()
- : proxy_hostname(0),
+ : proxy_hostname(NULL),
proxy_hostname_len(0),
server_max_connections(0),
origin_min_keep_alive_connections(0),
@@ -899,62 +892,62 @@ HttpConfigParams::HttpConfigParams()
no_origin_server_dns(0),
use_client_target_addr(0),
use_client_source_port(0),
- proxy_request_via_string(0),
+ proxy_request_via_string(NULL),
proxy_request_via_string_len(0),
- proxy_response_via_string(0),
+ proxy_response_via_string(NULL),
proxy_response_via_string_len(0),
- url_expansions_string(0),
- url_expansions(0),
+ url_expansions_string(NULL),
+ url_expansions(NULL),
num_url_expansions(0),
- session_auth_cache_keep_alive_enabled(0),
- origin_server_pipeline(0),
- user_agent_pipeline(0),
- transaction_active_timeout_in(0),
- accept_no_activity_timeout(0),
- parent_connect_attempts(0),
- per_parent_connect_attempts(0),
- parent_connect_timeout(0),
+ session_auth_cache_keep_alive_enabled(1),
+ origin_server_pipeline(1),
+ user_agent_pipeline(8),
+ transaction_active_timeout_in(900),
+ accept_no_activity_timeout(120),
+ parent_connect_attempts(4),
+ per_parent_connect_attempts(2),
+ parent_connect_timeout(30),
anonymize_other_header_list(NULL),
global_user_agent_header(NULL),
global_user_agent_header_size(0),
enable_http_stats(1),
icp_enabled(0),
stale_icp_enabled(0),
- cache_vary_default_text(0),
- cache_vary_default_images(0),
- cache_vary_default_other(0),
- max_cache_open_write_retries(0),
+ cache_vary_default_text(NULL),
+ cache_vary_default_images(NULL),
+ cache_vary_default_other(NULL),
+ max_cache_open_write_retries(1),
cache_enable_default_vary_headers(0),
- cache_when_to_add_no_cache_to_msie_requests(0),
- connect_ports_string(0),
- connect_ports(0),
+ cache_when_to_add_no_cache_to_msie_requests(-1),
+ connect_ports_string(NULL),
+ connect_ports(NULL),
request_hdr_max_size(131072),
response_hdr_max_size(131072),
push_method_enabled(0),
referer_filter_enabled(0),
referer_format_redirect(0),
accept_encoding_filter_enabled(0),
- client_transparency_enabled(0),
- server_transparency_enabled(0),
+ client_transparency_enabled(false),
+ server_transparency_enabled(false),
reverse_proxy_enabled(0),
- url_remap_required(0),
+ url_remap_required(1),
negative_revalidating_enabled(0),
- negative_revalidating_lifetime(0),
+ negative_revalidating_lifetime(1800),
record_cop_page(0),
record_tcp_mem_hit(0),
- errors_log_error_pages(0),
- default_buffer_size_index(0),
- default_buffer_water_mark(0),
+ errors_log_error_pages(1),
+ default_buffer_size_index(8),
+ default_buffer_water_mark(32768),
enable_http_info(0),
cluster_time_delta(0),
redirection_enabled(1),
- number_of_redirections(0),
+ number_of_redirections(1),
post_copy_size(2048),
ignore_accept_mismatch(0),
ignore_accept_language_mismatch(0),
ignore_accept_encoding_mismatch(0),
ignore_accept_charset_mismatch(0),
- normalize_ae_gzip(1)
+ normalize_ae_gzip(0)
{
}