10b6826461a44ecf6fe4374972c1e831c6b10db9mturk/* Licensed to the Apache Software Foundation (ASF) under one or more
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * contributor license agreements. See the NOTICE file distributed with
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * this work for additional information regarding copyright ownership.
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * The ASF licenses this file to You under the Apache License, Version 2.0
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * (the "License"); you may not use this file except in compliance with
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * the License. You may obtain a copy of the License at
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * Unless required by applicable law or agreed to in writing, software
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * distributed under the License is distributed on an "AS IS" BASIS,
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * See the License for the specific language governing permissions and
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * limitations under the License.
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk * Handle the CPING/CPONG
10b6826461a44ecf6fe4374972c1e831c6b10db9mturkapr_status_t ajp_handle_cping_cpong(apr_socket_t *sock,
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "Into ajp_handle_cping_cpong");
185aa71728867671e105178b4c66fbc22b65ae26sf ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01007)
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: ajp_msg_create failed");
185aa71728867671e105178b4c66fbc22b65ae26sf ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01008)
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: ajp_marshal_into_msgb failed");
3e13c3c3e6517a04c8c20ffb8e62aadb3b13f8dfrjung ajp_msg_log(r, msg, "ajp_handle_cping_cpong: ajp_ilink_send packet dump");
185aa71728867671e105178b4c66fbc22b65ae26sf ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01009)
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: ajp_ilink_send failed");
185aa71728867671e105178b4c66fbc22b65ae26sf ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01010)
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: apr_socket_timeout_get failed");
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk /* Set CPING/CPONG response timeout */
185aa71728867671e105178b4c66fbc22b65ae26sf ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01011)
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: apr_socket_timeout_set failed");
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk /* Read CPONG reply */
185aa71728867671e105178b4c66fbc22b65ae26sf ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01012)
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: ajp_ilink_receive failed");
3e13c3c3e6517a04c8c20ffb8e62aadb3b13f8dfrjung ajp_msg_log(r, msg, "ajp_handle_cping_cpong: ajp_ilink_receive packet dump");
185aa71728867671e105178b4c66fbc22b65ae26sf ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01013)
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: invalid CPONG message");
185aa71728867671e105178b4c66fbc22b65ae26sf ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01014)
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: awaited CPONG, received %d ",
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk /* Restore original socket timeout */
185aa71728867671e105178b4c66fbc22b65ae26sf ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01015)
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: apr_socket_timeout_set failed");
10b6826461a44ecf6fe4374972c1e831c6b10db9mturk "ajp_handle_cping_cpong: Done");
61a0ad13865dcc7f284c4279af7e15c9bbc050e2rjung return #x;\
61a0ad13865dcc7f284c4279af7e15c9bbc050e2rjung * Convert numeric message type into string
61a0ad13865dcc7f284c4279af7e15c9bbc050e2rjung * @param type AJP message type
61a0ad13865dcc7f284c4279af7e15c9bbc050e2rjung * @return AJP message type as a string
61a0ad13865dcc7f284c4279af7e15c9bbc050e2rjung return "CMD_AJP13_UNKNOWN";