Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 61551 invoked from network); 15 Oct 2004 21:16:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Oct 2004 21:16:29 -0000 Received: (qmail 58642 invoked by uid 500); 15 Oct 2004 21:16:28 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 58460 invoked by uid 500); 15 Oct 2004 21:16:27 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 58446 invoked by uid 500); 15 Oct 2004 21:16:27 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Received: (qmail 58443 invoked by uid 99); 15 Oct 2004 21:16:27 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 15 Oct 2004 14:16:26 -0700 Received: (qmail 61512 invoked by uid 1569); 15 Oct 2004 21:16:25 -0000 Date: 15 Oct 2004 21:16:25 -0000 Message-ID: <20041015211625.61510.qmail@minotaur.apache.org> From: nd@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/docs/manual/mod mod_filter.xml mod_isapi.xml.ko mod_proxy_ajp.xml X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N nd 2004/10/15 14:16:25 Modified: docs/manual/mod mod_filter.xml mod_isapi.xml.ko mod_proxy_ajp.xml Log: xml validation issues Revision Changes Path 1.4 +10 -3 httpd-2.0/docs/manual/mod/mod_filter.xml Index: mod_filter.xml =================================================================== RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_filter.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -u -r1.3 -r1.4 --- mod_filter.xml 21 Sep 2004 10:14:40 -0000 1.3 +++ mod_filter.xml 15 Oct 2004 21:16:25 -0000 1.4 @@ -61,13 +61,20 @@
Filter Declarations, Providers and Chains - +

+
+Figure 1: The traditional filter model

+

In the traditional model, output filters are a simple chain from the content generator (handler) to the client. This works well provided the filter chain can be correctly configured, but presents problems when the filters need to be configured dynamically based on the outcome of the handler.

- +

+
+Figure 2: The mod_filter model

mod_filter works by introducing indirection into the filter chain. Instead of inserting filters in the chain, we insert a filter harness which in turn dispatches conditionally 1.3 +1 -1 httpd-2.0/docs/manual/mod/mod_isapi.xml.ko Index: mod_isapi.xml.ko =================================================================== RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_isapi.xml.ko,v retrieving revision 1.2 retrieving revision 1.3 diff -u -u -r1.2 -r1.3 --- mod_isapi.xml.ko 22 Sep 2004 09:39:35 -0000 1.2 +++ mod_isapi.xml.ko 15 Oct 2004 21:16:25 -0000 1.3 @@ -105,7 +105,7 @@

HSE_REQ_SEND_URL_REDIRECT_RESP
����ڸ� �ٸ� ��ġ�� �����̷����Ѵ�.
������ URL�� ����ؾ� �Ѵ� (���� ���, - http://server/location).
. + http://server/location).
HSE_REQ_SEND_URL
����ڸ� �ٸ� ��ġ�� �����̷����Ѵ�.
1.4 +24 -22 httpd-2.0/docs/manual/mod/mod_proxy_ajp.xml Index: mod_proxy_ajp.xml =================================================================== RCS file: /home/cvs/httpd-2.0/docs/manual/mod/mod_proxy_ajp.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -u -r1.3 -r1.4 --- mod_proxy_ajp.xml 6 Oct 2004 06:35:15 -0000 1.3 +++ mod_proxy_ajp.xml 15 Oct 2004 21:16:25 -0000 1.4 @@ -47,6 +47,8 @@ +mod_proxy +
Overview of the protocol

The AJP13 protocol is packet-oriented. A binary format was presumably chosen over the more readable plain text for reasons of @@ -62,10 +64,10 @@ cause more connections to be open at once.

Once the web server has opened a connection to the servlet container, the connection can be in one of the following states:

-

    +
    • Idle
      No request is being handled over this connection.
    • Assigned
      The connecton is handling a specific request.
    • -

    +

Once a connection is assigned to handle a particular request, the basic request informaton (e.g. HTTP headers, etc) is sent over the connection in a highly condensed form (e.g. common strings are encoded as integers). @@ -74,7 +76,7 @@ separate packet immediately after.

At this point, the servlet container is presumably ready to start processing the request. As it does so, it can send the - following messages back to the web server: + following messages back to the web server:

  • SEND_HEADERS
    Send a set of headers back to the browser.
  • SEND_BODY_CHUNK
    Send a chunk of body data back to the browser. @@ -85,7 +87,7 @@ request (for uploaded files, for example). (Note: this is unrelated to HTTP chunked tranfer).
  • END_RESPONSE
    Finish the request-handling cycle.
  • -

+

Each message is accompanied by a differently formatted packet of data. See Response Packet Structures below for details.

@@ -99,7 +101,7 @@ making that so (on the C side). If anyone with a better knowledge of socket calls can step in, that would be great.

There are four data types in the protocol: bytes, booleans, - integers and strings. + integers and strings.

Byte
A single byte.
Boolean
@@ -122,7 +124,7 @@ C code can pass around references into a single buffer, without copying. if the \0 was missing, the C code would have to copy things out in order to get its notion of a string.
-

+
Packet Size

According to much of the code, the max packet size is @@ -136,7 +138,7 @@ ASCII code for B). After those first two bytes, there is an integer (encoded as above) with the length of the payload. Although this might suggest that the maximum payload could be as large as 2^16, in fact, the - code sets the maximum to be 8K. + code sets the maximum to be 8K.

@@ -176,13 +178,14 @@ -
Packet Format (Server->Container)Data Length (n) Data

+

For most packets, the first byte of the payload encodes the type of message. The exception is for request body packets sent from the server to the container -- they are sent with a standard packet header ( 0x1234 and then length of the packet), but without any prefix code after that.

-

The web server can send the following messages to the servlet container: +

The web server can send the following messages to the servlet + container:

@@ -216,14 +219,14 @@ -
CodeData Size (2 bytes) and corresponding body data.

+

To ensure some basic security, the container will only actually do the Shutdown if the request comes from the same machine on which it's hosted.

The first Data packet is send immediatly after the Forward Request by the web server.

The servlet container can send the following types of messages to the - webserver: + webserver:

@@ -259,7 +262,7 @@ -
CodeCPong Reply The reply to a CPing request

+

Each of the above messages has a different internal structure, detailed below.

@@ -311,7 +314,7 @@
Method

The HTTP method, encoded as a single byte:

-

+
@@ -340,7 +343,7 @@ -
Command NameCode
OPTIONS1
GET2
MERGE25
BASELINE_CONTROL26
MKACTIVITY27

+

Later version of ajp13, will transport additional methods, even if they are not in this list.

@@ -359,7 +362,7 @@ it is encoded normally (as a string, with prefixed length). The list of common headers sc_req_header_nameand their codes is as follows (all are case-sensitive):

-

+
-
NameCode valueCode name
accept0xA001SC_REQ_ACCEPT
accept-charset0xA002SC_REQ_ACCEPT_CHARSET @@ -381,7 +384,7 @@
pragma0xA00CSC_REQ_PRAGMA
referer0xA00DSC_REQ_REFERER
user-agent0xA00ESC_REQ_USER_AGENT

+

The Java code that reads this grabs the first two-byte integer and if it sees an '0xA0' in the most significant byte, it uses the integer in the second byte as an index into an array of @@ -405,7 +408,7 @@ sends them in the order listed below). A special terminating code is sent to signal the end of the list of optional attributes. The list of byte codes is:

-

+
@@ -422,7 +425,7 @@ attribute follows) -
InformationCode ValueNote
?context0x01Not currently implemented
?ssl_key_size0x0B
are_done0xFFrequest_terminator

+

The context and servlet_path are not currently set by the C code, and most of the Java code completely ignores whatever is sent over for those fields (and some of it will actually break @@ -493,7 +496,7 @@ encoded the same way the request header names are. See header_encoding above for details about how the the codes are distinguished from the strings.
The codes for common headers are:

-

+
@@ -506,7 +509,7 @@ -
NameCode value
Content-Type0xA001
Content-Language0xA002
Servlet-Engine0xA009
Status0xA00A
WWW-Authenticate0xA00B

+

After the code or the string header name, the header value is immediately encoded.

@@ -531,6 +534,5 @@ -mod_proxy