* is being shut down.
* 20210531.4 (2.5.1-dev) Add ap_create_connection
* 20210531.5 (2.5.1-dev) Add ap_pre_connection
+ * 20210531.6 (2.5.1-dev) Add proxy_tunnel_conn_t
*/
#define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */
#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20210531
#endif
-#define MODULE_MAGIC_NUMBER_MINOR 5 /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 6 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a
tunnel->r = r;
tunnel->scheme = apr_pstrdup(r->pool, scheme);
- tunnel->client = apr_pcalloc(r->pool, sizeof(struct proxy_tunnel_conn));
- tunnel->origin = apr_pcalloc(r->pool, sizeof(struct proxy_tunnel_conn));
+ tunnel->client = apr_pcalloc(r->pool, sizeof(proxy_tunnel_conn_t));
+ tunnel->origin = apr_pcalloc(r->pool, sizeof(proxy_tunnel_conn_t));
tunnel->pfds = apr_array_make(r->pool, 2, sizeof(apr_pollfd_t));
tunnel->read_buf_size = ap_get_read_buf_size(r);
tunnel->client->other = tunnel->origin;
}
static int proxy_tunnel_forward(proxy_tunnel_rec *tunnel,
- struct proxy_tunnel_conn *in)
+ proxy_tunnel_conn_t *in)
{
- struct proxy_tunnel_conn *out = in->other;
+ proxy_tunnel_conn_t *out = in->other;
apr_status_t rv;
apr_off_t sent = 0;
int rc = OK;
request_rec *r = tunnel->r;
apr_pollset_t *pollset = tunnel->pollset;
- struct proxy_tunnel_conn *client = tunnel->client,
- *origin = tunnel->origin;
+ proxy_tunnel_conn_t *client = tunnel->client,
+ *origin = tunnel->origin;
apr_interval_time_t timeout = tunnel->timeout >= 0 ? tunnel->timeout : -1;
const char *scheme = tunnel->scheme;
apr_status_t rv;
for (i = 0; i < nresults; i++) {
const apr_pollfd_t *pfd = &results[i];
- struct proxy_tunnel_conn *tc = pfd->client_data;
+ proxy_tunnel_conn_t *tc = pfd->client_data;
ap_log_rerror(APLOG_MARK, APLOG_TRACE8, 0, r,
"proxy: %s: #%i: %s: %hx/%hx", scheme, i,
&& ((pfd->rtnevents & APR_POLLOUT)
|| !(tc->pfd->reqevents & APR_POLLIN)
|| !(pfd->rtnevents & (APR_POLLIN | APR_POLLHUP)))) {
- struct proxy_tunnel_conn *out = tc, *in = tc->other;
+ proxy_tunnel_conn_t *out = tc, *in = tc->other;
ap_log_rerror(APLOG_MARK, APLOG_TRACE8, 0, r,
"proxy: %s: %s output ready",