|
|
|
@ -202,9 +202,12 @@ prototcp_setup_src_child(pxy_conn_child_ctx_t *ctx)
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
prototcp_setup_dst_child(pxy_conn_child_ctx_t *ctx)
|
|
|
|
|
static int NONNULL(1) WUNRES
|
|
|
|
|
prototcp_connect_child(pxy_conn_child_ctx_t *ctx)
|
|
|
|
|
{
|
|
|
|
|
log_finest("ENTER");
|
|
|
|
|
|
|
|
|
|
/* create server-side socket and eventbuffer */
|
|
|
|
|
if (ctx->conn->srvdst.bev) {
|
|
|
|
|
// Reuse srvdst of parent in the first child conn
|
|
|
|
|
ctx->dst = ctx->conn->srvdst;
|
|
|
|
@ -231,15 +234,6 @@ prototcp_setup_dst_child(pxy_conn_child_ctx_t *ctx)
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int NONNULL(1) WUNRES
|
|
|
|
|
prototcp_connect_child(pxy_conn_child_ctx_t *ctx)
|
|
|
|
|
{
|
|
|
|
|
log_finest("ENTER");
|
|
|
|
|
|
|
|
|
|
/* create server-side socket and eventbuffer */
|
|
|
|
|
return prototcp_setup_dst_child(ctx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
prototcp_init_conn(UNUSED evutil_socket_t fd, UNUSED short what, void *arg)
|
|
|
|
|
{
|
|
|
|
|