Chapter 10: HTTP Connectors a native code interface level. After this connector has been fully field tested by the production Tomcat 6 user community, it is likely to become the Connector of choice on platforms that are supported by the Connector (currently including Win32 and Linux platforms). This chapter explores the properties and configuration of each implementation in more detail. Tomcat 6 HTTP /1.1 Connector The standard Java-based HTTP/1.1 Connector in the Tomcat 6 server is the Coyote Connector. This Connector is the most mature and stable of all the available Tomcat 6 HTTP connectors. HTTP /1.1 Connector Configuration A typical standard HTTP/1.1 Connector configuration is as follows (taken from $CATALINA_HOME/ conf/server.xml): Although the only mandatory attribute for the Connector configuration is the port attribute, numerous other important attributes can be configured, as described in the following list: . acceptCount: This is the maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full will be refused. This value is passed as the backlog parameter while creating a Tomcat server socket. The default queue length is 10, and the maximum is operating system-dependent. . address: This attribute specifies the IP address to which the Tomcat server binds. If the address attribute is not specified, Tomcat would bind to all addresses (if the host has multiple IP addresses). . allowTrace: This enables the TRACEHTTPmethod if set to true. The default is false. . compressibleMimeTypes: This is a comma-separated list of MIME types for which HTTP compressions (see the next attribute) can be used. The default value is text/html,text/xml, text/plain. . compression: The Connector can use HTTP/1.1 GZIP compression to get better bandwidth from the server. This can be enabled via the compression attribute. The valid values are off (disables compression), on (enables compression), force (forces compression in all cases), or a numerical value that specifies the minimum amount of data required before the output is compressed. The default value of the compression attribute is off. . connectionLinger: This sets the number of milliseconds for which socket connections will persist after the connection is closed. A value less than 0means don t linger (this is the default). . connectionTimeout: This is the number of milliseconds that this Connector waits after accepting a connection before requesting the URI line to be presented. The default value is 60,000 milliseconds (60 seconds).
If you looking for unlimited one inclusive web hosting plan please check cheap web hosting website.
This entry was posted
on Tuesday, May 26th, 2009 at 10:57 pm and is filed under tomcat.
You can follow any responses to this entry through the RSS 2.0 feed.
Responses are currently closed, but you can trackback from your own site.