/* HTTP routines for Apache proxy */
#include "mod_proxy.h"
+#include "ajp.h"
module AP_MODULE_DECLARE_DATA proxy_ajp_module;
}
if (1) { /* XXXX only when something to send ? */
- void *msg;
+ ajp_msg_t *msg;
apr_size_t bufsiz;
char *buff;
- long len;
status = ajp_alloc_data_msg(r, &buff, &bufsiz, &msg);
if (status != APR_SUCCESS) {
return status;
}
/* read the response */
- status = ajp_read_header(p_conn->sock, r, &(p_conn->data));
+ status = ajp_read_header(p_conn->sock, r,
+ (ajp_msg_t **)&(p_conn->data));
if (status != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_ERR, status, r->server,
"proxy: request failed to %pI (%s)",
}
} else if (type == 3) {
/* AJP13_SEND_BODY_CHUNK: piece of data */
- apr_size_t size;
+ apr_uint16_t size;
char *buff;
status = ajp_parse_data(r, p_conn->data, &size, &buff);
break;
}
/* Read the next message */
- status = ajp_read_header(p_conn->sock, r, &(p_conn->data));
+ status = ajp_read_header(p_conn->sock, r,
+ (ajp_msg_t **)&(p_conn->data));
if (status != APR_SUCCESS) {
break;
}