You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2008/09/21 09:12:29 UTC

svn commit: r697449 - /tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c

Author: mturk
Date: Sun Sep 21 00:12:29 2008
New Revision: 697449

URL: http://svn.apache.org/viewvc?rev=697449&view=rev
Log:
Use max_packet_size for minumum socket buffer sizes instead fixed 8K

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c?rev=697449&r1=697448&r2=697449&view=diff
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Sun Sep 21 00:12:29 2008
@@ -2469,9 +2469,6 @@
         p->socket_timeout =
             jk_get_worker_socket_timeout(props, p->name, AJP_DEF_SOCKET_TIMEOUT);
 
-        p->socket_buf =
-            jk_get_worker_socket_buffer(props, p->name, 8192);
-
         p->keepalive =
             jk_get_worker_socket_keepalive(props, p->name, JK_FALSE);
 
@@ -2505,6 +2502,9 @@
         p->max_packet_size =
             jk_get_max_packet_size(props, p->name);
 
+        p->socket_buf =
+            jk_get_worker_socket_buffer(props, p->name, p->max_packet_size);
+
         p->http_status_fail_num = jk_get_worker_fail_on_status(props, p->name,
                                      &p->http_status_fail[0],
                                      JK_MAX_HTTP_STATUS_FAILS);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org