]> granicus.if.org Git - apache/commitdiff
Add CPING/CPONG message size as defined as max inside Apache Tomcat using define.
authorMladen Turk <mturk@apache.org>
Tue, 24 Oct 2006 08:18:50 +0000 (08:18 +0000)
committerMladen Turk <mturk@apache.org>
Tue, 24 Oct 2006 08:18:50 +0000 (08:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@467274 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/ajp.h
modules/proxy/ajp_utils.c

index c91a0303ac3cc95dd7283a5866ee9a34971f7ce2..8bba5bf21165363054f64cd05bb7bfb6ff02f309 100644 (file)
@@ -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
index e2c6f3c86e5e5960c71e3a4e475d1b5aefd45964..780aeb4856097e90159e9dc7ff5b09a47c5d95d2 100644 (file)
@@ -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");