ajp_link.c revision 617fdbb16e8dcb172f2d5e423bc5420ef70f7a2a
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "ajp.h"
{
char *buf;
do {
if (status != APR_SUCCESS) {
"ajp_ilink_send(): send failed");
return status;
}
} while (length);
return APR_SUCCESS;
}
{
apr_size_t rdlen = 0;
return status; /* socket closed. */
else if (APR_STATUS_IS_EAGAIN(status))
continue;
else if (status != APR_SUCCESS)
return status; /* any error. */
}
return APR_SUCCESS;
}
{
if (status != APR_SUCCESS) {
"ajp_ilink_receive() can't receive header");
}
if (status != APR_SUCCESS) {
"ajp_ilink_receive() received bad header");
return AJP_EBAD_HEADER;
}
if (status != APR_SUCCESS) {
"ajp_ilink_receive() error while receiving message body "
"of length %" APR_SIZE_T_FMT,
hlen);
return AJP_EBAD_MESSAGE;
}
"ajp_ilink_receive() received packet len=%" APR_SIZE_T_FMT
"type=%d",
return APR_SUCCESS;
}