From commits-return-1511patrick48@example.com Mon Nov 01 23:34:08 2010 Return-Path: <commits-return-1511patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 26278 invoked from network); 1 Nov 2010 23:34:07 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 1 Nov 2010 23:34:07 -0000 Received: (qmail 57044 invoked by uid 500); 1 Nov 2010 23:34:39 -0000 Delivered-To: patrick48@example.com Received: (qmail 56985 invoked by uid 500); 1 Nov 2010 23:34:38 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 56978 invoked by uid 99); 1 Nov 2010 23:34:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 23:34:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 23:34:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5B5DF23888FD; Mon, 1 Nov 2010 23:33:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1029893 - /trafficserver/site/trunk/docs/v2/search.html Date: Mon, 01 Nov 2010 23:33:24 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> Author: mlibbey Date: Mon Nov 1 23:33:24 2010 New Revision: 1029893 URL: http://svn.apache.org/viewvc?rev=1029893&view=rev Log: typo in top.html file name include Modified: trafficserver/site/trunk/docs/v2/search.html Modified: trafficserver/site/trunk/docs/v2/search.html URL: http://svn.apache.org/viewvc/trafficserver/site/trunk/docs/v2/search.html?rev=1029893&r1=1029892&r2=1029893&view=diff ============================================================================== --- trafficserver/site/trunk/docs/v2/search.html (original) +++ trafficserver/site/trunk/docs/v2/search.html Mon Nov 1 23:33:24 2010 @@ -1,4 +1,4 @@ -<!--#include file="top.htm" --> +<!--#include file="top.html" --> <div id="cse-search-results"></div> <script type="text/javascript"> var googleSearchIframeName = "cse-search-results"; From commits-return-1512patrick48@example.com Tue Nov 02 17:22:01 2010 Return-Path: <commits-return-1512patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 37203 invoked from network); 2 Nov 2010 17:22:00 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 2 Nov 2010 17:22:00 -0000 Received: (qmail 39986 invoked by uid 500); 2 Nov 2010 17:22:32 -0000 Delivered-To: patrick48@example.com Received: (qmail 39928 invoked by uid 500); 2 Nov 2010 17:22:31 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 39921 invoked by uid 99); 2 Nov 2010 17:22:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:22:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Nov 2010 17:22:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6532D23888D2; Tue, 2 Nov 2010 17:21:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030130 - /trafficserver/traffic/trunk/CHANGES Date: Tue, 02 Nov 2010 17:21:16 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> Author: zwoop Date: Tue Nov 2 17:21:03 2010 New Revision: 1030130 URL: http://svn.apache.org/viewvc?rev=1030130&view=rev Log: Updated with latest additions. Modified: trafficserver/traffic/trunk/CHANGES Modified: trafficserver/traffic/trunk/CHANGES URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/CHANGES?rev=1030130&r1=1030129&r2=1030130&view=diff ============================================================================== --- trafficserver/traffic/trunk/CHANGES (original) +++ trafficserver/traffic/trunk/CHANGES Tue Nov 2 17:21:03 2010 @@ -2,6 +2,12 @@ Changes with Apache Traffic Server 2.1.4 + *) Fix plugin APIs to be compatible with the 64-bit changes in the + core. This is an incompatible change with previous releases [TS-14]. + + *) Fixes for stats around origin connection counters, used when + allowing for origin connections to be reused between clients [TS-501]. + *) Experimental supoprt for a dedicated DNS thread. This can be enabled with the records.config option From commits-return-1513patrick48@example.com Wed Nov 03 17:27:50 2010 Return-Path: <commits-return-1513patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 89819 invoked from network); 3 Nov 2010 17:27:50 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 3 Nov 2010 17:27:50 -0000 Received: (qmail 1678 invoked by uid 500); 3 Nov 2010 17:28:21 -0000 Delivered-To: patrick48@example.com Received: (qmail 1619 invoked by uid 500); 3 Nov 2010 17:28:20 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 1612 invoked by uid 99); 3 Nov 2010 17:28:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 17:28:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 17:28:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 40C6A23888E8; Wed, 3 Nov 2010 17:27:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030552 - in /trafficserver/site/branches/ats-cms: ./ content/docs/admin/files.mdtext lib/ lib/path.pm lib/view.pm Date: Wed, 03 Nov 2010 17:27:05 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> Author: igalic Date: Wed Nov 3 17:27:04 2010 New Revision: 1030552 URL: http://svn.apache.org/viewvc?rev=1030552&view=rev Log: Talked to joes, re-adding this as local, so we can edit lib/view.pm and create stuff like language links. Added: trafficserver/site/branches/ats-cms/lib/ trafficserver/site/branches/ats-cms/lib/path.pm trafficserver/site/branches/ats-cms/lib/view.pm Modified: trafficserver/site/branches/ats-cms/ (props changed) trafficserver/site/branches/ats-cms/content/docs/admin/files.mdtext Propchange: trafficserver/site/branches/ats-cms/ ('svn:externals' removed) Modified: trafficserver/site/branches/ats-cms/content/docs/admin/files.mdtext URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/content/docs/admin/files.mdtext?rev=1030552&r1=1030551&r2=1030552&view=diff ============================================================================== --- trafficserver/site/branches/ats-cms/content/docs/admin/files.mdtext (original) +++ trafficserver/site/branches/ats-cms/content/docs/admin/files.mdtext Wed Nov 3 17:27:04 2010 @@ -1250,11 +1250,27 @@ The following list describes the configu the `records.config` file. -**System Variables** +### System Variables ### {#records.config-system-variables} + +*`proxy.config.product_company`* +: `STRING` +: `Apache Software Foundation` +: The name of the organization developing Traffic Server. + +*`proxy.config.product_vendor`* +: `STRING` +: `Apache` +: The name of the vendor providing Traffic Server. + +*`proxy.config.product_name`* +: `STRING` +: `Traffic Server` +: The name of the product. *`proxy.config.proxy_name`* -: `STRING` -: The name of the Traffic Server node. +: `STRING` +: `<proxy_name>` +: The name of the Traffic Server node. *`proxy.config.bin_path`* : `STRING` @@ -3387,13 +3403,14 @@ The following example is for the Solaris /devices/sbus@1f,0/SUNW,fas@e,880000/sd@2,0:a,raw /devices/sbus@1f,0/SUNW,fas@e,880000/sd@2,0:b,raw -**Note:** Size is not required because the partitions are raw. +**Note:** Size is optional. If not specified, the entire +partition is used. #### Linux Example -The following example is for the Linux operating system: +The following example will use an entire raw disk in the Linux operating system: - /dev/raw_sdb (903)236-2617 + /dev/sdb Added: trafficserver/site/branches/ats-cms/lib/path.pm URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/lib/path.pm?rev=1030552&view=auto ============================================================================== --- trafficserver/site/branches/ats-cms/lib/path.pm (added) +++ trafficserver/site/branches/ats-cms/lib/path.pm Wed Nov 3 17:27:04 2010 @@ -0,0 +1,64 @@ +package path; +use AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Value; + +# taken from django's url.py + +our @patterns = ( + + [qr!^/index\.html$!, news_page => + { + svn => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4SVN->new(limit => 5), + jira => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Jira->new(limit => 5, + url => "http://s.apache.org/q4"), + announce => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Mail->new(list => 'patrick48@example.com', + limit => 5), + planet => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Blogs->new(blog => "planet", limit=> 5), + blog => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Blogs->new(blog => "foundation", limit=> 5), + twitter => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Twitter->new(name => 'TheASF', limit => 5), + }, + ], + + [qr!^/dev/index\.html$!, news_page => + { + svn => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4SVN->new(limit => 5), + twitter => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Twitter->new(name=>"infrabot", limit => 5), + blog => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Blogs->new(blog => "infra", limit=> 5), + jira => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Jira->new(limit => 5, + url => "http://s.apache.org/lg"), + }, + ], + + [qr!^/dev/sitemap\.html$!, sitemap => { headers => { title => "Developer Sitemap" }} ], + + [qr!^/licenses/exports/index\.html$!, exports => {} ], + + [qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }], +); + + +# for specifying interdependencies between files + +our %dependencies = ( + "/dev/sitemap.html" => [ grep s!^content!!, glob "content/dev/*.mdtext" ], +); + +1; + +=head1 LICENSE + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. Added: trafficserver/site/branches/ats-cms/lib/view.pm URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/lib/view.pm?rev=1030552&view=auto ============================================================================== --- trafficserver/site/branches/ats-cms/lib/view.pm (added) +++ trafficserver/site/branches/ats-cms/lib/view.pm Wed Nov 3 17:27:04 2010 @@ -0,0 +1,195 @@ +package view; + +# +# BUILD CONSTRAINT: all views must return $content, $extension. +# additional return values (as seen below) are optional. However, +# careful use of symlinks and dependency management in path.pm can +# resolve most issues with this constraint. +# + +use strict; +use warnings; +use Doti888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DTL qw/Template/; +use Doti888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DTL888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4on888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4markup; +use AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Util qw/read_text_file shuffle/; +use Fil888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Temp qw/tempfile/; +use LWP888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Simple; + +push @Doti888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DTL888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4TEMPLATE_DIRS, "templates"; + +# This is most widely used view. It takes a +# 'template' argument and a 'path' argument. +# Assuming the path ends in foo.mdtext, any files +# like foo.page/bar.mdtext will be parsed and +# passed to the template in the "bar" (hash) +# variable. + +# foo.en.mdtext and foo.ch.mdtext -> foo.html.en, +sub single_narrative { + my %args = @_; + my $file = "content$args{path}"; + my $template = $args{template}; + $args{path} =~ s/\.mdtext$/\.html/; + $args{breadcrumbs} = breadcrumbs($args{path}); + + read_text_file $file, \%args; + + # pre process $args{content} to include language links. + + my $page_path = $file; + $page_path =~ s/\.[^.]+$/.page/; + if (-d $page_path) { + for my $f (grep -f, glob "$page_path/*.mdtext") { + $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n"; + $args{$1} = {}; + read_text_file $f, $args{$1}; + } + } + + return Doti888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DTL888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Template($template)->render(\%args), html => \%args; +} + +# Has the same behavior as the above for foo.page/bar.txt +# files, parsing them into a bar variable for the template. +# Otherwise presumes the template is the path. + +sub news_page { + my %args = @_; + my $template = "content$args{path}"; + $args{breadcrumbs} = breadcrumbs($args{path}); + + my $page_path = $template; + $page_path =~ s/\.[^.]+$/.page/; + if (-d $page_path) { + for my $f (grep -f, glob "$page_path/*.mdtext") { + $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n"; + $args{$1} = {}; + read_text_file $f, $args{$1}; + } + } + + for ((fetch_doap_url_list())[0..2]) { + push @{$args{projects}}, parse_doap($_); + } + + return Doti888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DTL888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Template($template)->render(\%args), html => \%args; +} + +sub sitemap { + my %args = @_; + my $template = "content$args{path}"; + $args{breadcrumbs} .= breadcrumbs($args{path}); + my $dir = $template; + $dir =~ s!/[^/]+$!!; + opendir my $dh, $dir or die "Can't opendir $dir: $!\n"; + my %data; + for (map "$dir/$_", grep $_ ne "." && $_ ne ".." && $_ ne ".svn", readdir $dh) { + if (-f and /\.mdtext$/) { + my $file = $_; + $file =~ s/^content//; + no warnings 'once'; + for my $p (@path888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4patterns) { + my ($re, $method, $args) = @$p; + next unless $file =~ $re; + my $s = view->can($method) or die "Can't locate method: $method\n"; + my ($content, $ext, $vars) = $s->(path => $file, %$args); + $file =~ s/\.mdtext$/.$ext/; + $data{$file} = $vars; + last; + } + } + } + + my $content = ""; + + for (sort keys %data) { + $content .= "- [$data{$_}->{headers}->{title}]($_)\n"; + for my $hdr (grep /^#/, split "\n", $data{$_}->{content}) { + $hdr =~ /^(#+)\s+([^#]+)?\s+\1\s+\{#([^}]+)\}$/ or next; + my $level = length $1; + $level *= 4; + $content .= " " x $level; + $content .= "- [$2]($_#$3)\n"; + } + } + $args{content} = $content; + return Doti888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DTL888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Template($template)->render(\%args), html => \%args; +} + +sub exports { + my %args = @_; + my $template = "content$args{path}"; + $args{breadcrumbs} = breadcrumbs($args{path}); + + my $page_path = $template; + $page_path =~ s/\.[^.]+$/.page/; + if (-d $page_path) { + for my $f (grep -f, glob "$page_path/*.mdtext") { + $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n"; + $args{$1} = {}; + read_text_file $f, $args{$1}; + } + $args{table} = `xsltproc $page_path/eccnmatrix.xsl $page_path/eccnmatrix.xml`; + + } + + return Doti888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DTL888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Template($template)->render(\%args), html => \%args; +} + +sub parse_doap { + my $url = shift; + my $doap = get $url or die "Can't get $url: $!\n"; + my ($fh, $filename) = tempfile("XXXXXX"); + print $fh $doap; + close $fh; + my $result = eval `xsltproc lib/doap2perl.xsl $filename`; + unlink $filename; + return $result; +} + +sub fetch_doap_url_list { + my $xml = get "http://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/files.xml" + or die "Can't get doap file list: $!\n"; + my ($fh, $filename) = tempfile("XXXXXX"); + print $fh $xml; + close $fh; + chomp(my @urls = grep /^http/, `xsltproc lib/list2urls.xsl $filename`); + unlink $filename; + shuffle \@urls; + return @urls; +} + +1; + +sub breadcrumbs { + my @path = split m!/!, shift; + pop @path; + my @rv; + my $relpath = ""; + for (@path) { + $relpath .= "$_/"; + $_ ||= "Home"; + push @rv, qq(<a href="$relpath">\u$_</a>); + } + return join "&nbsp;&raquo&nbsp;", @rv; +} + + +=head1 LICENSE + + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. From commits-return-1514patrick48@example.com Wed Nov 03 20:33:02 2010 Return-Path: <commits-return-1514patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 6260 invoked from network); 3 Nov 2010 20:33:02 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 3 Nov 2010 20:33:02 -0000 Received: (qmail 79376 invoked by uid 500); 3 Nov 2010 20:33:33 -0000 Delivered-To: patrick48@example.com Received: (qmail 79325 invoked by uid 500); 3 Nov 2010 20:33:32 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 79318 invoked by uid 99); 3 Nov 2010 20:33:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 20:33:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 20:33:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B4B2823889DE; Wed, 3 Nov 2010 20:32:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1030650 - in /trafficserver/site/branches/ats-cms/content: ./ docs/admin/ docs/sdk/ docs/trunk/ docs/trunk/admin/ docs/trunk/sdk/ Date: Wed, 03 Nov 2010 20:32:17 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> Author: igalic Date: Wed Nov 3 20:32:16 2010 New Revision: 1030650 URL: http://svn.apache.org/viewvc?rev=1030650&view=rev Log: Moving docs/* to docs/trunk, for versioning. renaming foo.mdtext to foo.en.mdtext in preparation for translations, renaming links from foo.html? to foo, refer to: http://httpd.apache.org/docs/current/content-negotiation.html#naming Added: trafficserver/site/branches/ats-cms/content/docs/trunk/ trafficserver/site/branches/ats-cms/content/docs/trunk/admin/ - copied from r1030647, trafficserver/site/branches/ats-cms/content/docs/admin/ trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext - copied, changed from r1030647, trafficserver/site/branches/ats-cms/content/docs/admin/files.mdtext trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext - copied, changed from r1030647, trafficserver/site/branches/ats-cms/content/docs/admin/index.mdtext trafficserver/site/branches/ats-cms/content/docs/trunk/sdk/ - copied from r1030647, trafficserver/site/branches/ats-cms/content/docs/sdk/ Removed: trafficserver/site/branches/ats-cms/content/docs/admin/ trafficserver/site/branches/ats-cms/content/docs/sdk/ trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.mdtext trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.mdtext trafficserver/site/branches/ats-cms/content/downloads.mdtext trafficserver/site/branches/ats-cms/content/index.mdtext Copied: trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext (from r1030647, trafficserver/site/branches/ats-cms/content/docs/admin/files.mdtext) URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext?p2=trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext&p1=trafficserver/site/branches/ats-cms/content/docs/admin/files.mdtext&r1=1030647&r2=1030650&rev=1030650&view=diff ============================================================================== --- trafficserver/site/branches/ats-cms/content/docs/admin/files.mdtext (original) +++ trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext Wed Nov 3 20:32:16 2010 @@ -253,7 +253,7 @@ Server bin directory; then run the `traf changes. When you apply the changes to a node in a cluster, Traffic Server automatically applies the changes to all other nodes in the cluster. Traffic Server uses the `congestion.config` file only if you enable the -[Congestion Control](http.html#UsingCongestionControl) option. +[Congestion Control](http#UsingCongestionControl) option. You can create rules in the congestion.config file to specify: - Which origin servers Traffic Server tracks for congestion. @@ -411,12 +411,12 @@ The `hosting.config` file enables you to origin servers and/or domains so that you can manage cache space efficiently and restrict disk usage. For step-by-step instructions on partitioning the cache according to origin servers and/or domains, refer -to [Partitioning the Cache](cache.html) According to Origin Server or Domain. +to [Partitioning the Cache](cache) According to Origin Server or Domain. Before you can assign cache partitions to specific origin servers and/or domains, you must first partition your cache according to size and protocol in the [partition.config](#partition.config) file. For step-by-step instructions about partitioning your cache, refer to -[Partitioning the Cache](cache.html). For a description of the +[Partitioning the Cache](cache). For a description of the `partition.config` file, refer to [partition.config](#partition.config). After you modify hosting.config, navigate to the Traffic Server bin @@ -584,12 +584,12 @@ The `logs.config` file establishes and f custom transaction log files. Although Traffic Server supports traditional custom logging, you should use the more versatile XML-based custom logging (refer to -[Using the Custom Format](log.html) and +[Using the Custom Format](log) and [logs\_xml.config](#logs_xml.config)). If you opt to use traditional custom logging instead of the more versatile XML-based custom logging, then you must enable the traditional custom logging option manually (refer to -[Support for Traditional Custom Logging](log.htm)). +[Support for Traditional Custom Logging](log)). **IMPORTANT:** After you modify `logs.config`, navigate to the Traffic Server`bin` directory and run the `traffic_line -x` command @@ -623,7 +623,7 @@ separated by colons (:). *`format string`* : Identifies the `printf` -style format string specifying the field symbols to be displayed and how they should look in ASCII. Refer to - this [Appendix](logfmts.htm) for a list of the available field + this [Appendix](logfmts) for a list of the available field symbols and their meanings. Field symbols are indicated by %<`field_symbol` \> format. For @@ -683,7 +683,7 @@ out the following section at the end of To record HTTP transactions for different origin servers in separate log files, you must list each origin server hostname in the `log_hosts.config` file. In addition, you must enable the -[HTTP Host Log Splitting](log.html) option. You should use the same +[HTTP Host Log Splitting](log) option. You should use the same `log_hosts.config` file on every Traffic Server node in your cluster. After you modify the `log_hosts.config` file, navigate to the Traffic Server`bin` directory and run the @@ -763,7 +763,7 @@ The following list shows **`LogFormat`** describing each log entry when formatted for ASCII output. Use `%<` `*field*` `>` as a placeholder for valid field names. For more information, refer to - [Custom Logging Fields](logfmts.html#custom-logging-fields). + [Custom Logging Fields](logfmts#custom-logging-fields). The specified field can be one of the following types: @@ -804,7 +804,7 @@ The following list shows the `LogFilter` **`valid\_log\_field`** - the field that will be compared against the given value. For more information, refer to - [Logging Format Cross-Reference](logfmts.html#cross-reference). + [Logging Format Cross-Reference](logfmts#cross-reference). **`valid\_operator\_field`** - any one of the following: `MATCH`, `CASE_INSENSITIVE_MATCH`, `CONTAIN`, `CASE_INSENSITIVE_CONTAIN`. @@ -852,7 +852,7 @@ The following list shows the `LogObject` If the name does not contain an extension (for example, `squid`), then the extension `.log` is automatically appended to it for ASCII logs and `.blog` for binary logs (refer to - [Mode = "valid\_logging\_mode"](files.htm#0_73225)). + [Mode = "valid\_logging\_mode"](files#0_73225)). If you do not want an extension to be added, then end the filename with a single (.) dot (for example: `squid.` ). @@ -1042,7 +1042,7 @@ configuration: Traffic Server uses the `parent.config` file only when the parent caching option is enabled (refer to -[Configuring Traffic Server to Use a Parent Cache](hier.html)). +[Configuring Traffic Server to Use a Parent Cache](hier)). **IMPORTANT:** After you modify the `parent.config` file, navigate to the Traffic Server`bin` directory and run the `traffic_line -x` @@ -1166,7 +1166,7 @@ the [hosting.config](#hosting.config) fi nodes in a cluster. You must stop Traffic Server before you change the cache partition size and protocol assignment. For step-by-step instructions about partitioning the cache, refer to -[Partitioning the Cache](cache.html). +[Partitioning the Cache](cache). #### Format #### @@ -1334,7 +1334,7 @@ the `records.config` file. : `LOG_DAEMON` : The facility used to record system log files. Refer to - [Understanding Traffic Server Log Files](log.htm#UnderstandingTrafficEdgeLogFiles). + [Understanding Traffic Server Log Files](log#UnderstandingTrafficEdgeLogFiles). *`proxy.config.cop.core_signal`* : `INT` @@ -1546,7 +1546,7 @@ the `records.config` file. `2` = some extra information is added. Note: the Via: header string interpretation is - [documented here.](trouble.htm#interpret_via_header) + [documented here.](trouble#interpret_via_header) *`proxy.config.http.insert_response_via_str `* @@ -1606,7 +1606,7 @@ the `records.config` file. : `0` : Enables (`1`) or disables (`0`) the parent caching option. - Refer to [Hierarchical Caching](hier.html). + Refer to [Hierarchical Caching](hier). *`proxy.config.http.parent_proxy.retry_time `* : `INT` @@ -1803,7 +1803,7 @@ the `records.config` file. client a message to retry the congested origin server later. Refer to - [Using Congestion Control](http.htm#UsingCongestionControl). + [Using Congestion Control](http#UsingCongestionControl). **Negative Response Caching** @@ -2229,7 +2229,7 @@ the `records.config` file. for the selection specification. Refer to - [Configuring DNS Server Selection (Split DNS)](secure.html#ConfiguringDNSServerSelectionSplit). + [Configuring DNS Server Selection (Split DNS)](secure#ConfiguringDNSServerSelectionSplit). *`proxy.config.dns.splitdns.def_domain`* : `STRING` @@ -2330,7 +2330,7 @@ the `records.config` file. `2` = log transactions only `3` = full logging (errors + transactions) - Refer to [Working with Log Files](log.htm). + Refer to [Working with Log Files](log). *`proxy.config.log2.max_secs_per_buffer`* : `INT` @@ -2511,7 +2511,7 @@ the `records.config` file. log file for HTTP transactions for each origin server listed in the `log_hosts.config` file. - Refer to [HTTP Host Log Splitting](log.html#HTTPHostLogSplitting). + Refer to [HTTP Host Log Splitting](log#HTTPHostLogSplitting). *`proxy.local.log2.collation_mode`* : `INT` @@ -2530,7 +2530,7 @@ the `records.config` file. For information on sending XML-based custom formats to the collation server, refer to - [logs\_xml.config](files.htm#logs_xml.config). + [logs\_xml.config](files#logs_xml.config). **Note:** Although Traffic Server supports traditional custom logging, you should use the more versatile XML-based custom @@ -2717,7 +2717,7 @@ the `records.config` file. : `INT` : `0` : Enables (`1`) or disables (`0`) the - [SSL Termination](secure.htm#UsingSSLTermination) option. + [SSL Termination](secure#UsingSSLTermination) option. *`proxy.config.ssl.SSLv2`* : `INT` @@ -2878,7 +2878,7 @@ the `records.config` file. `1` = allows Traffic Server to receive ICP queries only `2` = allows Traffic Server to send and receive ICP queries - Refer to [ICP Peering](hier.html#ICPPeering). + Refer to [ICP Peering](hier#ICPPeering). *`proxy.config.icp.icp_interface`* : `STRING` @@ -3033,7 +3033,7 @@ uses to perform the following actions: - Redirect HTTP requests permanently or temporarily without Traffic Server having to contact any origin servers -Refer to [Reverse Proxy and HTTP Redirects](reverse.htm), for +Refer to [Reverse Proxy and HTTP Redirects](reverse), for information about redirecting HTTP requests and using reverse proxy. @@ -3222,7 +3222,7 @@ This will pass "1" and "2" to plugin1.so The `splitdns.config` file enables you to specify the DNS server that Traffic Server should use for resolving hosts under specific conditions. For more information, refer to -[Configuring DNS Server Selection (Split DNS)](secure.htm). +[Configuring DNS Server Selection (Split DNS)](secure). To specify a DNS server, you must supply the following information in each active line within the file: Copied: trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext (from r1030647, trafficserver/site/branches/ats-cms/content/docs/admin/index.mdtext) URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext?p2=trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext&p1=trafficserver/site/branches/ats-cms/content/docs/admin/index.mdtext&r1=1030647&r2=1030650&rev=1030650&view=diff ============================================================================== --- trafficserver/site/branches/ats-cms/content/docs/admin/index.mdtext (original) +++ trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext Wed Nov 3 20:32:16 2010 @@ -65,7 +65,7 @@ satisfy future requests. Traffic Server provides explicit proxy caching, in which the user's client software must be configured to send requests directly to Traffic Server. Explicit proxy caching is described in the -[Explicit Proxy Caching](/docs/admin/explicit.html) section. +[Explicit Proxy Caching](/docs/admin/explicit) section. ### Traffic Server as a Reverse Proxy ### {#reverse-proxy} As a reverse proxy, Traffic Server is configured to be the origin @@ -73,7 +73,7 @@ server to which the user is trying to co server's advertised hostname resolves to Traffic Server, which acts as the real origin server). The reverse proxy feature is also called server acceleration. Reverse proxy is described in more detail in -[Reverse Proxy and HTTP Redirects](/docs/admin/reverse.html). +[Reverse Proxy and HTTP Redirects](/docs/admin/reverse). ### Traffic Server in a Cache Hierarchy ### {#cache-hierachy} Traffic Server can participate in flexible cache hierarchies, in which @@ -85,7 +85,7 @@ to similar caching products. Traffic Server supports ICP (Internet Cache Protocol) peering. Hierarchical caching is described in more detail in -[Hierarchical Caching](/docs/admin/hier.html). +[Hierarchical Caching](/docs/admin/hier). ## Traffic Server Components ## {#ats-components} Traffic Server consists of several components that work together to @@ -109,7 +109,7 @@ If all of the cache disks fail, then Tra proxy-only mode. You can partition the cache to reserve a certain amount of disk space for storing data for specific protocols and origin servers. For more information about the cache, see -[Configuring the Cache](/docs/admin/cache.html). +[Configuring the Cache](/docs/admin/cache). ### The RAM Cache ### {#ram-cache} Traffic Server maintains a small RAM cache that contains extremely @@ -117,7 +117,7 @@ popular objects. This RAM cache serves t as possible and reduces load on disks, especially during temporary traffic peaks. You can configure the RAM cache size to suit your needs; for detailed information, refer to -[Changing the Size of the RAM Cache](/docs/admin/cache.html#ChangingSizeRAMCache). +[Changing the Size of the RAM Cache](/docs/admin/cache#ChangingSizeRAMCache). ### The Host Database ### {#host-db} The Traffic Server host database stores the domain name server (DNS) @@ -210,9 +210,9 @@ and monitoring: they contain information specific to protocol or hosts. Traffic analysis options are described in more detail in -[Monitoring Traffic](/docs/admin/monitor.html); +[Monitoring Traffic](/docs/admin/monitor); Traffic Server logging options are described in -[Working with Log Files](/docs/admin/log.html). +[Working with Log Files](/docs/admin/log). ## Traffic Server Security Options ## {#security} Traffic Server provides numerous options that enable you to establish @@ -234,5 +234,5 @@ following: * Control access via SSL (Secure Sockets Layer). Traffic Server security options are described in more detail in -[Security Options](/docs/admin/secure.html). +[Security Options](/docs/admin/secure). From commits-return-1515patrick48@example.com Wed Nov 03 23:28:45 2010 Return-Path: <commits-return-1515patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 67362 invoked from network); 3 Nov 2010 23:28:45 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 3 Nov 2010 23:28:45 -0000 Received: (qmail 63992 invoked by uid 500); 3 Nov 2010 23:29:16 -0000 Delivered-To: patrick48@example.com Received: (qmail 63936 invoked by uid 500); 3 Nov 2010 23:29:16 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 63929 invoked by uid 99); 3 Nov 2010 23:29:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 23:29:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 23:29:15 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3C5B723888EA; Wed, 3 Nov 2010 23:28:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1030757 - /trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext Date: Wed, 03 Nov 2010 23:28:02 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> Author: igalic Date: Wed Nov 3 23:28:01 2010 New Revision: 1030757 URL: http://svn.apache.org/viewvc?rev=1030757&view=rev Log: This Perl looks awfull. I don't know if it'll work. Modified: trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext Modified: trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext?rev=1030757&r1=1030756&r2=1030757&view=diff ============================================================================== --- trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext (original) +++ trafficserver/site/branches/ats-cms/content/docs/trunk/admin/index.en.mdtext Wed Nov 3 23:28:01 2010 @@ -16,6 +16,8 @@ Notice: Licensed to the Apache Softwa specific language governing permissions and limitations under the License. +Available Languages: [LANG] + # Overview # {#overview} Apache Traffic Server™ speeds Internet access, enhances website performance, and delivers unprecedented web hosting capabilities. From commits-return-1516patrick48@example.com Wed Nov 03 23:28:58 2010 Return-Path: <commits-return-1516patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 67443 invoked from network); 3 Nov 2010 23:28:57 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 3 Nov 2010 23:28:57 -0000 Received: (qmail 64109 invoked by uid 500); 3 Nov 2010 23:29:29 -0000 Delivered-To: patrick48@example.com Received: (qmail 64058 invoked by uid 500); 3 Nov 2010 23:29:29 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 64051 invoked by uid 99); 3 Nov 2010 23:29:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 23:29:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 23:29:28 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4CD9023889F7; Wed, 3 Nov 2010 23:28:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030758 - in /trafficserver/site/branches/ats-cms/lib: path.pm view.pm Date: Wed, 03 Nov 2010 23:28:15 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> Author: igalic Date: Wed Nov 3 23:28:14 2010 New Revision: 1030758 URL: http://svn.apache.org/viewvc?rev=1030758&view=rev Log: This Perl looks awfull. I don't know if it'll work. Modified: trafficserver/site/branches/ats-cms/lib/path.pm trafficserver/site/branches/ats-cms/lib/view.pm Modified: trafficserver/site/branches/ats-cms/lib/path.pm URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/lib/path.pm?rev=1030758&r1=1030757&r2=1030758&view=diff ============================================================================== --- trafficserver/site/branches/ats-cms/lib/path.pm (original) +++ trafficserver/site/branches/ats-cms/lib/path.pm Wed Nov 3 23:28:14 2010 @@ -7,31 +7,18 @@ our @patterns = ( [qr!^/index\.html$!, news_page => { - svn => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4SVN->new(limit => 5), - jira => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Jira->new(limit => 5, - url => "http://s.apache.org/q4"), - announce => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Mail->new(list => 'patrick48@example.com', - limit => 5), - planet => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Blogs->new(blog => "planet", limit=> 5), - blog => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Blogs->new(blog => "foundation", limit=> 5), - twitter => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Twitter->new(name => 'TheASF', limit => 5), + blog => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Blogs->new(blog => "trafficserver", limit=> 5), }, ], [qr!^/dev/index\.html$!, news_page => { - svn => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4SVN->new(limit => 5), - twitter => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Twitter->new(name=>"infrabot", limit => 5), - blog => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Blogs->new(blog => "infra", limit=> 5), + blog => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Blogs->new(blog => "trafficserver", limit=> 5), jira => AS888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Valu888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Jira->new(limit => 5, url => "http://s.apache.org/lg"), }, ], - [qr!^/dev/sitemap\.html$!, sitemap => { headers => { title => "Developer Sitemap" }} ], - - [qr!^/licenses/exports/index\.html$!, exports => {} ], - [qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }], ); @@ -39,7 +26,6 @@ our @patterns = ( # for specifying interdependencies between files our %dependencies = ( - "/dev/sitemap.html" => [ grep s!^content!!, glob "content/dev/*.mdtext" ], ); 1; Modified: trafficserver/site/branches/ats-cms/lib/view.pm URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/lib/view.pm?rev=1030758&r1=1030757&r2=1030758&view=diff ============================================================================== --- trafficserver/site/branches/ats-cms/lib/view.pm (original) +++ trafficserver/site/branches/ats-cms/lib/view.pm Wed Nov 3 23:28:14 2010 @@ -24,7 +24,6 @@ push @Doti888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4DTL888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4TEMPLATE_DIRS, "templ # passed to the template in the "bar" (hash) # variable. -# foo.en.mdtext and foo.ch.mdtext -> foo.html.en, sub single_narrative { my %args = @_; my $file = "content$args{path}"; @@ -34,8 +33,6 @@ sub single_narrative { read_text_file $file, \%args; - # pre process $args{content} to include language links. - my $page_path = $file; $page_path =~ s/\.[^.]+$/.page/; if (-d $page_path) { @@ -43,6 +40,12 @@ sub single_narrative { $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n"; $args{$1} = {}; read_text_file $f, $args{$1}; + # pre process $args{content} to include language links. + $f =~ s/.+?\.([^.]+)\.mdtext/$1/; + $fl = glob "$f*"; + $fl =~ s/.+?\.([^.]+)\.mdtext/ [$1]($1) |/g; + chop $fl; + $args{content} =~ s/\[LANG\]/$fl/; } } From commits-return-1517patrick48@example.com Thu Nov 04 00:34:31 2010 Return-Path: <commits-return-1517patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 4392 invoked from network); 4 Nov 2010 00:34:31 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 4 Nov 2010 00:34:31 -0000 Received: (qmail 20720 invoked by uid 500); 4 Nov 2010 00:35:02 -0000 Delivered-To: patrick48@example.com Received: (qmail 20674 invoked by uid 500); 4 Nov 2010 00:35:02 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 20667 invoked by uid 99); 4 Nov 2010 00:35:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 00:35:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 00:35:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CDD0E23888DD; Thu, 4 Nov 2010 00:33:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030779 - /trafficserver/site/branches/ats-cms/lib/view.pm Date: Thu, 04 Nov 2010 00:33:48 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> Author: igalic Date: Thu Nov 4 00:33:48 2010 New Revision: 1030779 URL: http://svn.apache.org/viewvc?rev=1030779&view=rev Log: trigger Buildbot Modified: trafficserver/site/branches/ats-cms/lib/view.pm Modified: trafficserver/site/branches/ats-cms/lib/view.pm URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/lib/view.pm?rev=1030779&r1=1030778&r2=1030779&view=diff ============================================================================== --- trafficserver/site/branches/ats-cms/lib/view.pm (original) +++ trafficserver/site/branches/ats-cms/lib/view.pm Thu Nov 4 00:33:48 2010 @@ -41,6 +41,7 @@ sub single_narrative { $args{$1} = {}; read_text_file $f, $args{$1}; # pre process $args{content} to include language links. + # this is ugly $f =~ s/.+?\.([^.]+)\.mdtext/$1/; $fl = glob "$f*"; $fl =~ s/.+?\.([^.]+)\.mdtext/ [$1]($1) |/g; From commits-return-1518patrick48@example.com Thu Nov 04 01:16:56 2010 Return-Path: <commits-return-1518patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 31903 invoked from network); 4 Nov 2010 01:16:56 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 4 Nov 2010 01:16:56 -0000 Received: (qmail 64438 invoked by uid 500); 4 Nov 2010 01:17:27 -0000 Delivered-To: patrick48@example.com Received: (qmail 64385 invoked by uid 500); 4 Nov 2010 01:17:27 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 64378 invoked by uid 99); 4 Nov 2010 01:17:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 01:17:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 01:17:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 97AAD23888E8; Thu, 4 Nov 2010 01:16:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030793 - in /trafficserver/site/branches/ats-cms: content/docs/trunk/admin/files.en.mdtext lib/view.pm Date: Thu, 04 Nov 2010 01:16:10 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: igalic Date: Thu Nov 4 01:16:10 2010 New Revision: 1030793 URL: http://svn.apache.org/viewvc?rev=1030793&view=rev Log: Buildbot trigger Modified: trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext trafficserver/site/branches/ats-cms/lib/view.pm Modified: trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext?rev=1030793&r1=1030792&r2=1030793&view=diff ============================================================================== --- trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext (original) +++ trafficserver/site/branches/ats-cms/content/docs/trunk/admin/files.en.mdtext Thu Nov 4 01:16:10 2010 @@ -16,6 +16,8 @@ Notice: Licensed to the Apache Softwa specific language governing permissions and limitations under the License. +Available Languages: [LANG] + # Appendix E - Configuration Files # {#files} This appendix describes Traffic Server configuration files that you can edit. Modified: trafficserver/site/branches/ats-cms/lib/view.pm URL: http://svn.apache.org/viewvc/trafficserver/site/branches/ats-cms/lib/view.pm?rev=1030793&r1=1030792&r2=1030793&view=diff ============================================================================== --- trafficserver/site/branches/ats-cms/lib/view.pm (original) +++ trafficserver/site/branches/ats-cms/lib/view.pm Thu Nov 4 01:16:10 2010 @@ -43,7 +43,7 @@ sub single_narrative { # pre process $args{content} to include language links. # this is ugly $f =~ s/.+?\.([^.]+)\.mdtext/$1/; - $fl = glob "$f*"; + my $fl = glob "$f*"; $fl =~ s/.+?\.([^.]+)\.mdtext/ [$1]($1) |/g; chop $fl; $args{content} =~ s/\[LANG\]/$fl/; From commits-return-1519patrick48@example.com Thu Nov 04 02:23:46 2010 Return-Path: <commits-return-1519patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 56878 invoked from network); 4 Nov 2010 02:23:46 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 4 Nov 2010 02:23:46 -0000 Received: (qmail 4580 invoked by uid 500); 4 Nov 2010 02:24:17 -0000 Delivered-To: patrick48@example.com Received: (qmail 4549 invoked by uid 500); 4 Nov 2010 02:24:17 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 4542 invoked by uid 99); 4 Nov 2010 02:24:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 02:24:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 02:24:15 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C6DDB23889EB; Thu, 4 Nov 2010 02:23:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030805 - in /trafficserver/traffic/trunk: librecords/P_RecCore.h librecords/P_RecDefs.h librecords/RecCore.cc proxy/InkAPI.cc proxy/api/ts/ts.h Date: Thu, 04 Nov 2010 02:23:00 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: jesus Date: Thu Nov 4 02:23:00 2010 New Revision: 1030805 URL: http://svn.apache.org/viewvc?rev=1030805&view=rev Log: TS-508 Generalize RecDumpRecordsHt to use RecDumpRecords which is a callback/map pattern. Map this into InkAPI with the new INKRecordDump(INKRecordType rec_type, INKRecordDumpCb callback, void *edata) function. This doesn't change any APIs, introduces one and should cause no functional changes in the product. Documentation of the INKRecordDump function is still required in ts.h Modified: trafficserver/traffic/trunk/librecords/P_RecCore.h trafficserver/traffic/trunk/librecords/P_RecDefs.h trafficserver/traffic/trunk/librecords/RecCore.cc trafficserver/traffic/trunk/proxy/InkAPI.cc trafficserver/traffic/trunk/proxy/api/ts/ts.h Modified: trafficserver/traffic/trunk/librecords/P_RecCore.h URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/librecords/P_RecCore.h?rev=1030805&r1=1030804&r2=1030805&view=diff ============================================================================== --- trafficserver/traffic/trunk/librecords/P_RecCore.h (original) +++ trafficserver/traffic/trunk/librecords/P_RecCore.h Thu Nov 4 02:23:00 2010 @@ -98,4 +98,7 @@ int RecExecRawStatUpdateFuncs(); void RecDumpRecordsHt(RecT rec_type = RECT_NULL); +void +RecDumpRecords(RecT rec_type, RecDumpEntryCb callback, void *edata); + #endif Modified: trafficserver/traffic/trunk/librecords/P_RecDefs.h URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/librecords/P_RecDefs.h?rev=1030805&r1=1030804&r2=1030805&view=diff ============================================================================== --- trafficserver/traffic/trunk/librecords/P_RecDefs.h (original) +++ trafficserver/traffic/trunk/librecords/P_RecDefs.h Thu Nov 4 02:23:00 2010 @@ -171,6 +171,8 @@ struct RecMessageItr typedef RecMessageHdr RecMessage; +typedef void (*RecDumpEntryCb) (RecT rec_type, void *edata, int registered, const char *name, int data_type, RecData *datum); + typedef int (*RecMessageRecvCb) (RecMessage * msg, RecMessageT msg_type, void *cookie); #endif Modified: trafficserver/traffic/trunk/librecords/RecCore.cc URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/librecords/RecCore.cc?rev=1030805&r1=1030804&r2=1030805&view=diff ============================================================================== --- trafficserver/traffic/trunk/librecords/RecCore.cc (original) +++ trafficserver/traffic/trunk/librecords/RecCore.cc Thu Nov 4 02:23:00 2010 @@ -878,42 +878,52 @@ RecForceInsert(RecRecord * record) //------------------------------------------------------------------------- // RecDumpRecordsHt //------------------------------------------------------------------------- + +static void +debug_record_callback(RecT rec_type, void *edata, int registered, const char *name, int data_type, RecData *datum) +{ + switch(data_type) { + case RECD_INT: + RecDebug(DL_Note, " ([%d] '%s', '%lld')", registered, name, datum->rec_int); + break; + case RECD_FLOAT: + RecDebug(DL_Note, " ([%d] '%s', '%f')", registered, name, datum->rec_float); + break; + case RECD_STRING: + RecDebug(DL_Note, " ([%d] '%s', '%s')", + registered, name, datum->rec_string ? datum->rec_string : "NULL"); + break; + case RECD_COUNTER: + RecDebug(DL_Note, " ([%d] '%s', '%lld')", registered, name, datum->rec_counter); + break; + default: + RecDebug(DL_Note, " ([%d] '%s', <? ? ?>)", registered, name); + break; + } +} void -RecDumpRecordsHt(RecT rec_type) +RecDumpRecords(RecT rec_type, RecDumpEntryCb callback, void *edata) { int i, num_records; - RecDebug(DL_Note, "Dumping Records:"); - num_records = g_num_records; for (i = 0; i < num_records; i++) { RecRecord *r = &(g_records[i]); if ((rec_type == RECT_NULL) || (rec_type == r->rec_type)) { rec_mutex_acquire(&(r->lock)); - switch (r->data_type) { - case RECD_INT: - RecDebug(DL_Note, " ([%d] '%s', '%lld')", r->registered, r->name, r->data.rec_int); - break; - case RECD_FLOAT: - RecDebug(DL_Note, " ([%d] '%s', '%f')", r->registered, r->name, r->data.rec_float); - break; - case RECD_STRING: - RecDebug(DL_Note, " ([%d] '%s', '%s')", - r->registered, r->name, r->data.rec_string ? r->data.rec_string : "NULL"); - break; - case RECD_COUNTER: - RecDebug(DL_Note, " ([%d] '%s', '%lld')", r->registered, r->name, r->data.rec_counter); - break; - default: - RecDebug(DL_Note, " ([%d] '%s', <? ? ?>)", r->registered, r->name); - break; - } + callback(rec_type, edata, r->registered, r->name, r->data_type, &r->data); rec_mutex_release(&(r->lock)); } } } void +RecDumpRecordsHt(RecT rec_type) { + RecDebug(DL_Note, "Dumping Records:"); + RecDumpRecords(rec_type, debug_record_callback, NULL); +} + +void RecGetRecordTree(char *subtree) { RecTree *tree = g_records_tree; Modified: trafficserver/traffic/trunk/proxy/InkAPI.cc URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/InkAPI.cc?rev=1030805&r1=1030804&r2=1030805&view=diff ============================================================================== --- trafficserver/traffic/trunk/proxy/InkAPI.cc (original) +++ trafficserver/traffic/trunk/proxy/InkAPI.cc Thu Nov 4 02:23:00 2010 @@ -8229,4 +8229,10 @@ INKAIOThreadNumSet(int thread_num) } } +void +INKRecordDump(INKRecordType rec_type, INKRecordDumpCb callback, void *edata) +{ + RecDumpRecords((RecT)rec_type, (RecDumpEntryCb)callback, edata); +} + #endif //INK_NO_API Modified: trafficserver/traffic/trunk/proxy/api/ts/ts.h URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/api/ts/ts.h?rev=1030805&r1=1030804&r2=1030805&view=diff ============================================================================== --- trafficserver/traffic/trunk/proxy/api/ts/ts.h (original) +++ trafficserver/traffic/trunk/proxy/api/ts/ts.h Thu Nov 4 02:23:00 2010 @@ -2506,6 +2506,43 @@ extern "C" typedef void *INKTextLogObject; /** + This type represents a context for data records. + */ + typedef enum + { + INK_RECORDTYPE_NULL = 0, + INK_RECORDTYPE_CONFIG, + INK_RECORDTYPE_PROCESS, + INK_RECORDTYPE_NODE, + INK_RECORDTYPE_CLUSTER, + INK_RECORDTYPE_LOCAL, + INK_RECORDTYPE_PLUGIN, + INK_RECORDTYPE_MAX + } INKRecordType; + + typedef enum + { + INK_RECORDDATATYPE_NULL = 0, + INK_RECORDDATATYPE_INT, + INK_RECORDDATATYPE_FLOAT, + INK_RECORDDATATYPE_STRING, + INK_RECORDDATATYPE_COUNTER, + INK_RECORDDATATYPE_MAX + } INKRecordDataType; + + typedef union + { + int64 rec_int; + float rec_float; + char *rec_string; + int64 rec_counter; + } INKRecordData; + + typedef void (*INKRecordDumpCb) (INKRecordType rec_type, void *edata, int registered, const char *name, INKRecordDataType data_type, INKRecordData *datum); + + inkapi void INKRecordDump(INKRecordType rec_type, INKRecordDumpCb callback, void *edata); + + /** Creates a new custom log file that your plugin can write to. You can design the fields and inputs to the log file using the From commits-return-1520patrick48@example.com Thu Nov 04 02:56:34 2010 Return-Path: <commits-return-1520patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 61146 invoked from network); 4 Nov 2010 02:56:34 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 4 Nov 2010 02:56:34 -0000 Received: (qmail 23487 invoked by uid 500); 4 Nov 2010 02:57:05 -0000 Delivered-To: patrick48@example.com Received: (qmail 23245 invoked by uid 500); 4 Nov 2010 02:57:05 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 23234 invoked by uid 99); 4 Nov 2010 02:57:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 02:57:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 02:57:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B103723888EC; Thu, 4 Nov 2010 02:55:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030810 - in /trafficserver/traffic/trunk/proxy/http2: HttpConfig.cc HttpConfig.h HttpTransact.cc Date: Thu, 04 Nov 2010 02:55:46 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: jesus Date: Thu Nov 4 02:55:46 2010 New Revision: 1030810 URL: http://svn.apache.org/viewvc?rev=1030810&view=rev Log: TS-509 simple, brute force (and efficient) status code stats counters Modified: trafficserver/traffic/trunk/proxy/http2/HttpConfig.cc trafficserver/traffic/trunk/proxy/http2/HttpConfig.h trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc Modified: trafficserver/traffic/trunk/proxy/http2/HttpConfig.cc URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http2/HttpConfig.cc?rev=1030810&r1=1030809&r2=1030810&view=diff ============================================================================== --- trafficserver/traffic/trunk/proxy/http2/HttpConfig.cc (original) +++ trafficserver/traffic/trunk/proxy/http2/HttpConfig.cc Thu Nov 4 02:55:46 2010 @@ -839,6 +839,182 @@ register_stat_callbacks() RecRegisterRawStat(http_rsb, RECT_PROCESS, "proxy.process.http.jg_cache_miss_time_stat", RECD_INT, RECP_NULL, (int) http_jg_cache_miss_time_stat, RecRawStatSyncSum); + //////////////////////////////////////////////////////////////////////////////// + // status code counts + //////////////////////////////////////////////////////////////////////////////// + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.100_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_100_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.101_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_101_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.1xx_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_1xx_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.200_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_200_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.201_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_201_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.202_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_202_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.203_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_203_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.204_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_204_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.205_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_205_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.206_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_206_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.2xx_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_2xx_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.300_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_300_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.301_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_301_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.302_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_302_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.303_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_303_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.304_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_304_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.305_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_305_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.307_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_307_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.400_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_400_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.401_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_401_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.402_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_402_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.403_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_403_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.404_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_404_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.405_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_405_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.406_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_406_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.407_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_407_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.408_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_408_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.409_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_409_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.410_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_410_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.411_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_411_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.412_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_412_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.413_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_413_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.414_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_414_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.415_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_415_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.416_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_416_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.4xx_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_4xx_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.500_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_500_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.501_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_501_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.502_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_502_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.503_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_503_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.504_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_504_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.505_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_505_count_stat, RecRawStatSyncCount); + + RecRegisterRawStat(http_rsb, RECT_PROCESS, + "proxy.process.http.5xx_responses", + RECD_COUNTER, RECP_NULL, (int) http_response_status_5xx_count_stat, RecRawStatSyncCount); + //////////////////////////////////////////////////////////////////////////////// // http - time and count of transactions classified by client's point of view // Modified: trafficserver/traffic/trunk/proxy/http2/HttpConfig.h URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http2/HttpConfig.h?rev=1030810&r1=1030809&r2=1030810&view=diff ============================================================================== --- trafficserver/traffic/trunk/proxy/http2/HttpConfig.h (original) +++ trafficserver/traffic/trunk/proxy/http2/HttpConfig.h Thu Nov 4 02:55:46 2010 @@ -299,6 +299,51 @@ enum http_jg_cache_hit_time_stat, http_jg_cache_miss_time_stat, + // status code stats + http_response_status_100_count_stat, + http_response_status_101_count_stat, + http_response_status_1xx_count_stat, + http_response_status_200_count_stat, + http_response_status_201_count_stat, + http_response_status_202_count_stat, + http_response_status_203_count_stat, + http_response_status_204_count_stat, + http_response_status_205_count_stat, + http_response_status_206_count_stat, + http_response_status_2xx_count_stat, + http_response_status_300_count_stat, + http_response_status_301_count_stat, + http_response_status_302_count_stat, + http_response_status_303_count_stat, + http_response_status_304_count_stat, + http_response_status_305_count_stat, + http_response_status_307_count_stat, + http_response_status_3xx_count_stat, + http_response_status_400_count_stat, + http_response_status_401_count_stat, + http_response_status_402_count_stat, + http_response_status_403_count_stat, + http_response_status_404_count_stat, + http_response_status_405_count_stat, + http_response_status_406_count_stat, + http_response_status_407_count_stat, + http_response_status_408_count_stat, + http_response_status_409_count_stat, + http_response_status_410_count_stat, + http_response_status_411_count_stat, + http_response_status_412_count_stat, + http_response_status_413_count_stat, + http_response_status_414_count_stat, + http_response_status_415_count_stat, + http_response_status_416_count_stat, + http_response_status_4xx_count_stat, + http_response_status_500_count_stat, + http_response_status_501_count_stat, + http_response_status_502_count_stat, + http_response_status_503_count_stat, + http_response_status_504_count_stat, + http_response_status_505_count_stat, + http_response_status_5xx_count_stat, http_stat_count }; Modified: trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc?rev=1030810&r1=1030809&r2=1030810&view=diff ============================================================================== --- trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc (original) +++ trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc Thu Nov 4 02:55:46 2010 @@ -8891,6 +8891,59 @@ HttpTransact888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4lient_result_stat(State * } else if (s->client_info.abort == MAYBE_ABORTED) { client_transaction_result = CLIENT_TRANSACTION_RESULT_ERROR_POSSIBLE_ABORT; } + // Count the status codes + int status_code = s->hdr_info.client_response.status_get(); + switch(status_code) { + case 100: HTTP_SUM_TRANS_STAT(http_response_status_100_count_stat, 1); break; + case 101: HTTP_SUM_TRANS_STAT(http_response_status_101_count_stat, 1); break; + case 200: HTTP_SUM_TRANS_STAT(http_response_status_200_count_stat, 1); break; + case 201: HTTP_SUM_TRANS_STAT(http_response_status_201_count_stat, 1); break; + case 202: HTTP_SUM_TRANS_STAT(http_response_status_202_count_stat, 1); break; + case 203: HTTP_SUM_TRANS_STAT(http_response_status_203_count_stat, 1); break; + case 204: HTTP_SUM_TRANS_STAT(http_response_status_204_count_stat, 1); break; + case 205: HTTP_SUM_TRANS_STAT(http_response_status_205_count_stat, 1); break; + case 206: HTTP_SUM_TRANS_STAT(http_response_status_206_count_stat, 1); break; + case 300: HTTP_SUM_TRANS_STAT(http_response_status_300_count_stat, 1); break; + case 301: HTTP_SUM_TRANS_STAT(http_response_status_301_count_stat, 1); break; + case 302: HTTP_SUM_TRANS_STAT(http_response_status_302_count_stat, 1); break; + case 303: HTTP_SUM_TRANS_STAT(http_response_status_303_count_stat, 1); break; + case 304: HTTP_SUM_TRANS_STAT(http_response_status_304_count_stat, 1); break; + case 305: HTTP_SUM_TRANS_STAT(http_response_status_305_count_stat, 1); break; + case 307: HTTP_SUM_TRANS_STAT(http_response_status_307_count_stat, 1); break; + case 400: HTTP_SUM_TRANS_STAT(http_response_status_400_count_stat, 1); break; + case 401: HTTP_SUM_TRANS_STAT(http_response_status_401_count_stat, 1); break; + case 402: HTTP_SUM_TRANS_STAT(http_response_status_402_count_stat, 1); break; + case 403: HTTP_SUM_TRANS_STAT(http_response_status_403_count_stat, 1); break; + case 404: HTTP_SUM_TRANS_STAT(http_response_status_404_count_stat, 1); break; + case 405: HTTP_SUM_TRANS_STAT(http_response_status_405_count_stat, 1); break; + case 406: HTTP_SUM_TRANS_STAT(http_response_status_406_count_stat, 1); break; + case 407: HTTP_SUM_TRANS_STAT(http_response_status_407_count_stat, 1); break; + case 408: HTTP_SUM_TRANS_STAT(http_response_status_408_count_stat, 1); break; + case 409: HTTP_SUM_TRANS_STAT(http_response_status_409_count_stat, 1); break; + case 410: HTTP_SUM_TRANS_STAT(http_response_status_410_count_stat, 1); break; + case 411: HTTP_SUM_TRANS_STAT(http_response_status_411_count_stat, 1); break; + case 412: HTTP_SUM_TRANS_STAT(http_response_status_412_count_stat, 1); break; + case 413: HTTP_SUM_TRANS_STAT(http_response_status_413_count_stat, 1); break; + case 414: HTTP_SUM_TRANS_STAT(http_response_status_414_count_stat, 1); break; + case 415: HTTP_SUM_TRANS_STAT(http_response_status_415_count_stat, 1); break; + case 416: HTTP_SUM_TRANS_STAT(http_response_status_416_count_stat, 1); break; + case 500: HTTP_SUM_TRANS_STAT(http_response_status_500_count_stat, 1); break; + case 501: HTTP_SUM_TRANS_STAT(http_response_status_501_count_stat, 1); break; + case 502: HTTP_SUM_TRANS_STAT(http_response_status_502_count_stat, 1); break; + case 503: HTTP_SUM_TRANS_STAT(http_response_status_503_count_stat, 1); break; + case 504: HTTP_SUM_TRANS_STAT(http_response_status_504_count_stat, 1); break; + case 505: HTTP_SUM_TRANS_STAT(http_response_status_505_count_stat, 1); break; + default: break; + } + switch(status_code / 100) { + case 1: HTTP_SUM_TRANS_STAT(http_response_status_1xx_count_stat, 1); break; + case 2: HTTP_SUM_TRANS_STAT(http_response_status_2xx_count_stat, 1); break; + case 3: HTTP_SUM_TRANS_STAT(http_response_status_3xx_count_stat, 1); break; + case 4: HTTP_SUM_TRANS_STAT(http_response_status_4xx_count_stat, 1); break; + case 5: HTTP_SUM_TRANS_STAT(http_response_status_5xx_count_stat, 1); break; + default: break; + } + // Increment the completed connection count HTTP_SUM_TRANS_STAT(http_completed_requests_stat, 1); From commits-return-1521patrick48@example.com Thu Nov 04 21:42:36 2010 Return-Path: <commits-return-1521patrick48@example.com> Delivered-To: patrick48@example.com Received: (qmail 25191 invoked from network); 4 Nov 2010 21:42:31 -0000 Received: from unknown (HELO mail.apache.org) (83.161.120.155) by 83.161.120.155 with SMTP; 4 Nov 2010 21:42:31 -0000 Received: (qmail 43973 invoked by uid 500); 4 Nov 2010 21:43:02 -0000 Delivered-To: patrick48@example.com Received: (qmail 43902 invoked by uid 500); 4 Nov 2010 21:43:01 -0000 Mailing-List: contact patrick48@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:patrick48@example.com> List-Unsubscribe: <mailto:patrick48@example.com> List-Post: <mailto:patrick48@example.com> List-Id: <commits.trafficserver.apache.org> Reply-To: patrick48@example.com Delivered-To: mailing list patrick48@example.com Received: (qmail 43889 invoked by uid 99); 4 Nov 2010 21:43:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:43:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO eris.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 21:42:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D85472388978; Thu, 4 Nov 2010 21:41:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1031269 - in /trafficserver/traffic/trunk: Makefile.am configure.ac tsxs.in Date: Thu, 04 Nov 2010 21:41:43 -0000 To: patrick48@example.com From: patrick48@example.com X-Mailer: svnmailer-1.0.8 Message-Id: <patrick48@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Author: jesus Date: Thu Nov 4 21:41:43 2010 New Revision: 1031269 URL: http://svn.apache.org/viewvc?rev=1031269&view=rev Log: TS-512 it's neat that his is a power of two... tsxs to help compile modules Added: trafficserver/traffic/trunk/tsxs.in (with props) Modified: trafficserver/traffic/trunk/Makefile.am trafficserver/traffic/trunk/configure.ac Modified: trafficserver/traffic/trunk/Makefile.am URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/Makefile.am?rev=1031269&r1=1031268&r2=1031269&view=diff ============================================================================== --- trafficserver/traffic/trunk/Makefile.am (original) +++ trafficserver/traffic/trunk/Makefile.am Thu Nov 4 21:41:43 2010 @@ -36,6 +36,8 @@ EXTRA_DIST=CHANGES INSTALL STATUS NOTICE installcheck-local: $(DESTDIR)$(bindir)/traffic_server -R 1 +install-exec-local: + $(INSTALL) -m 0755 tsxs $(DESTDIR)$(bindir)/tsxs doxygen: $(MAKE) -C doc doxygen Modified: trafficserver/traffic/trunk/configure.ac URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/configure.ac?rev=1031269&r1=1031268&r2=1031269&view=diff ============================================================================== --- trafficserver/traffic/trunk/configure.ac (original) +++ trafficserver/traffic/trunk/configure.ac Thu Nov 4 21:41:43 2010 @@ -98,6 +98,8 @@ TS_PARSE_ARGUMENTS # Host detection # AC_CANONICAL_HOST +HOST_GUESS="$host" +AC_SUBST(HOST_GUESS) # # Build environment @@ -1189,6 +1191,7 @@ AC_SUBST([TFW_PACKAGE_SUFFIX]) # ----------------------------------------------------------------------------- # 6. OUTPUT FILES +AC_CONFIG_FILES([tsxs]) AC_CONFIG_FILES([doc/Doxyfile]) AC_CONFIG_FILES([doc/Makefile]) AC_CONFIG_FILES([rc/Makefile]) Added: trafficserver/traffic/trunk/tsxs.in URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/tsxs.in?rev=1031269&view=auto ============================================================================== --- trafficserver/traffic/trunk/tsxs.in (added) +++ trafficserver/traffic/trunk/tsxs.in Thu Nov 4 21:41:43 2010 @@ -0,0 +1,143 @@ +#!/bin/sh + +host="@HOST_GUESS@" +prefix="@prefix@" +exec_prefix="@exec_prefix@" +INSTALLDIR=`eval echo "@libexecdir@"` +INCLUDEDIR=`eval echo "@includedir@"` +CPPFLAGS="$CPPFLAGS -I$INCLUDEDIR" +BUILD= + +if [ -z "$CC" ]; then + CC="@CC@" +fi +if [ -z "$CXX" ]; then + CXX="@CXX@" +fi + +case $host in +*-*-darwin*) + PICFLAGS="-fPIC" + MODULELD="$CC -bundle -flat_namespace -undefined suppress" + MODULELDXX="$CXX -bundle -flat_namespace -undefined suppress" + MODULEEXT=bundle + RLDFLAG="-Wl,--rpath=" + ;; +*-*-solaris*) + if test "x$CC" != "xgcc" ; then + CFLAGS="$CFLAGS -mt" + fi + PICFLAGS="-Kpic" + MODULELD="$CC -G" + MODULELDXX="$CXX -G" + MODULEEXT=so + RLDFLAG="-R" + WHOLE_ARCHIVE="-Wl,-z -Wl,allextract" + NOWHOLE_ARCHIVE="-Wl,-z -Wl,defaultextract" + ;; +*-*-linux*) + LDFLAGS="$LDFLAGS -Wl,-E" + CPPFLAGS="$CPPFLAGS" + PICFLAGS="-fpic" + MODULELD="$CC -shared" + MODULELDXX="$CXX -shared" + MODULEEXT=so + RLDFLAG="-Wl,--rpath=" + WHOLE_ARCHIVE="-Wl,--whole-archive" + NOWHOLE_ARCHIVE="-Wl,--no-whole-archive" + ;; +*-*-freebsd*) + PICFLAGS="-fpic" + MODULELD="$CC -shared" + MODULELDXX="$CXX -shared" + MODULEEXT=so + RLDFLAG="-Wl,--rpath=" + ;; +*) + PICFLAGS="-fpic" + MODULELD="$CC -shared" + MODULEEXT=so + RLDFLAG="-Wl,--rpath=" + ;; +esac + +LD=$MODULELD +for v in $* +do + case $v in + -h) + cat <<EOF +$0 : a tool to compile, link and install trafficserver plugins. + + compiling/linking: + -c [ file1.c [ file2.c [ ... ] ] ] ## compiles C files + -C [ file1.cc [ file2.C [ ... ] ] ] ## compiles C++ files + -o modulename.so ## the name of the module + -l lib ## add -llib to the link + + installing: + -o modulename.so ## the name of the module + -i ## install the object + +EOF + exit + ;; + -l) + LIBS="$LIBS -l$2" + shift 2 + ;; + -c) + shift + while [ -r $1 ]; do + SRC=$1 + obj=`echo $SRC | sed -e 's/\.[a-z]*$/\.lo/g;'` + echo " compiling $SRC -> $obj" + echo "$CC $CPPFLAGS $CFLAGS $PICFLAGS -c $SRC -o $obj" + $CC $CPPFLAGS $CFLAGS $PICFLAGS -c $SRC -o $obj + OBJS="$OBJS $obj" + BUILD=1 + shift + done + ;; + -C) + shift + while [ -r $1 ]; do + SRC=$1 + obj=`echo $SRC | sed -e 's/\.[a-z]*$/\.lo/g;'` + echo " compiling $SRC -> $obj" + echo "$CXX $CPPFLAGS $CXXFLAGS $PICFLAGS -c $SRC -o $obj" + $CXX $CPPFLAGS $CXXFLAGS $PICFLAGS
{'source': 'Apache Software Foundation Public Mail Archives'}