Lines Matching refs:hctx
459 handler_ctx ** const hctx = (handler_ctx **)&r->con->plugin_ctx[p->id]; in REQUEST_FUNC() local
461 if (*hctx && sock_addr_is_addr_eq((sock_addr *)&(*hctx)->addr, dst_addr)) { in REQUEST_FUNC()
462 const array * const env = (*hctx)->env; in REQUEST_FUNC()
474 if (*hctx && r->http_version <= HTTP_VERSION_1_1) { in REQUEST_FUNC()
475 env = (*hctx)->env; in REQUEST_FUNC()
479 else if ((*hctx) == NULL) { in REQUEST_FUNC()
480 (*hctx) = ck_malloc(sizeof(handler_ctx)); in REQUEST_FUNC()
481 (*hctx)->env = env = array_init(pconf.env->used); in REQUEST_FUNC()
489 memcpy(&(*hctx)->addr, dst_addr, sizeof(dst_addr->ipv4)); in REQUEST_FUNC()
492 memcpy(&(*hctx)->addr, dst_addr, sizeof(dst_addr->ipv6)); in REQUEST_FUNC()
504 handler_ctx **hctx = in CONNECTION_FUNC() local
506 if (NULL != *hctx) { in CONNECTION_FUNC()
507 array_free((*hctx)->env); in CONNECTION_FUNC()
508 free(*hctx); in CONNECTION_FUNC()
509 *hctx = NULL; in CONNECTION_FUNC()