From: Mladen Turk Date: Tue, 24 Oct 2006 08:18:50 +0000 (+0000) Subject: Add CPING/CPONG message size as defined as max inside Apache Tomcat using define. X-Git-Tag: 2.3.0~2052 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae0b0e4d651bc8f8ff397ce24510bd1605225606;p=apache Add CPING/CPONG message size as defined as max inside Apache Tomcat using define. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@467274 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/ajp.h b/modules/proxy/ajp.h index c91a0303ac..8bba5bf211 100644 --- a/modules/proxy/ajp.h +++ b/modules/proxy/ajp.h @@ -134,6 +134,7 @@ struct ajp_msg #define AJP_MSG_BUFFER_SZ 8192 #define AJP_MAX_BUFFER_SZ 16384 #define AJP13_MAX_SEND_BODY_SZ (AJP_MAX_BUFFER_SZ - AJP_HEADER_SZ) +#define AJP_PING_PONG_SZ 128 /** Send a request from web server to container*/ #define CMD_AJP13_FORWARD_REQUEST (unsigned char)2 diff --git a/modules/proxy/ajp_utils.c b/modules/proxy/ajp_utils.c index e2c6f3c86e..780aeb4856 100644 --- a/modules/proxy/ajp_utils.c +++ b/modules/proxy/ajp_utils.c @@ -31,7 +31,7 @@ apr_status_t ajp_handle_cping_cpong(apr_socket_t *sock, ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "Into ajp_handle_cping_cpong"); - rc = ajp_msg_create(r->pool, 128, &msg); + rc = ajp_msg_create(r->pool, AJP_PING_PONG_SZ, &msg); if (rc != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server, "ajp_handle_cping_cpong: ajp_msg_create failed");