vfp_esi_bytes(struct sess *sp, struct http_conn *htc, ssize_t bytes) { int i; CHECK_OBJ_NOTNULL(sp, SESS_MAGIC); AN(sp->wrk->vep); if (sp->wrk->is_gzip && sp->wrk->do_gunzip) i = vfp_esi_bytes_gu(sp, htc, bytes); else if (sp->wrk->is_gunzip && sp->wrk->do_gzip) i = vfp_esi_bytes_ug(sp, htc, bytes); else if (sp->wrk->is_gzip) i = vfp_esi_bytes_gg(sp, htc, bytes); else i = vfp_esi_bytes_uu(sp, htc, bytes); AN(sp->wrk->vep); return (i); }
vfp_esi_bytes(struct busyobj *bo, struct http_conn *htc, ssize_t bytes) { struct vef_priv *vef; int i; CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC); vef = bo->vef_priv; CHECK_OBJ_NOTNULL(vef, VEF_MAGIC); AN(bo->vep); assert(&bo->htc == htc); if (bo->is_gzip && bo->do_gunzip) i = vfp_esi_bytes_gu(bo, vef, htc, bytes); else if (bo->is_gunzip && bo->do_gzip) i = vfp_esi_bytes_ug(bo, vef, htc, bytes); else if (bo->is_gzip) i = vfp_esi_bytes_gg(bo, vef, htc, bytes); else i = vfp_esi_bytes_uu(bo, vef, htc, bytes); AN(bo->vep); return (i); }
vfp_esi_bytes(struct worker *wrk, struct http_conn *htc, ssize_t bytes) { struct busyobj *bo; int i; CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC); bo = wrk->busyobj; CHECK_OBJ_NOTNULL(bo, BUSYOBJ_MAGIC); AZ(bo->fetch_failed); AN(bo->vep); assert(&bo->htc == htc); if (bo->is_gzip && bo->do_gunzip) i = vfp_esi_bytes_gu(wrk, htc, bytes); else if (bo->is_gunzip && bo->do_gzip) i = vfp_esi_bytes_ug(wrk, htc, bytes); else if (bo->is_gzip) i = vfp_esi_bytes_gg(wrk, htc, bytes); else i = vfp_esi_bytes_uu(wrk, htc, bytes); AN(bo->vep); return (i); }