diff options
author | Mladen Turk <mturk@apache.org> | 2006-10-24 10:18:50 +0200 |
---|---|---|
committer | Mladen Turk <mturk@apache.org> | 2006-10-24 10:18:50 +0200 |
commit | ae0b0e4d651bc8f8ff397ce24510bd1605225606 (patch) | |
tree | d1a97417792eb67ecbf557c411c702f8a0bd128c /modules | |
parent | Put the next field at the end of the structure. (diff) | |
download | apache2-ae0b0e4d651bc8f8ff397ce24510bd1605225606.tar.xz apache2-ae0b0e4d651bc8f8ff397ce24510bd1605225606.zip |
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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/proxy/ajp.h | 1 | ||||
-rw-r--r-- | modules/proxy/ajp_utils.c | 2 |
2 files changed, 2 insertions, 1 deletions
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"); |