ports/151078: [patch] www/tomcat55: add http timeout for application
jgh at experts-exchange.com
jgh at experts-exchange.com
Wed Sep 29 16:50:02 UTC 2010
>Number: 151078
>Category: ports
>Synopsis: [patch] www/tomcat55: add http timeout for application
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 29 16:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Jason Helfman
>Release: FreeBSD 7.3-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD eggman.experts-exchange.com 7.3-RELEASE-p2 FreeBSD 7.3-RELEASE-p2 #0: Mon Jul 12 19:04:04 UTC 2010 root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
adding an http timeout to the application currently needs to be done by hand editing server.xml, and this would add a variable to configure this number via the port. the default is the vendor supplied number.
The server.xml patch should replace "tomcat55/files/patch-conf::server.xml" (created via make makepatch)
>How-To-Repeat:
>Fix:
--- tomcat55/Makefile.orig 2010-09-15 14:58:06.000000000 -0700
+++ tomcat55/Makefile 2010-09-29 09:12:16.000000000 -0700
@@ -33,6 +33,7 @@
TOMCAT_GROUP?= www
TOMCAT_UID?= 80
HTTP_PORT?= 8180
+HTTP_TIMEOUT?= 20000
SHUTDOWN_PORT?= 8005
AJP_1_3_PORT?= 8009
STDOUT_LOG= ${LOG_DIR}/stdout.log
@@ -54,6 +55,7 @@
APP_TITLE="${APP_TITLE}" \
GROUP=${TOMCAT_GROUP} \
HTTP_PORT=${HTTP_PORT} \
+ HTTP_TIMEOUT=${HTTP_TIMEOUT} \
JAR_FILE=${JAR_FILE} \
JAVA_HOME=${JAVA_HOME} \
LOG_DIR=${LOG_DIR} \
--- ./conf/server.xml.orig 2010-09-27 17:28:13.000000000 -0700
+++ ./conf/server.xml 2010-09-27 17:29:20.000000000 -0700
@@ -91,10 +91,10 @@
-->
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
- <Connector port="8080" maxHttpHeaderSize="8192"
+ <Connector port="%%HTTP_PORT%%" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
- connectionTimeout="20000" disableUploadTimeout="true" />
+ connectionTimeout="%%HTTP_TIMEOUT%%" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
@@ -122,7 +122,7 @@
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
- <Connector port="8082"
+ <Connector port="%%AJP_1_3_PORT%%"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" acceptCount="100" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list