Skip to content

Commit

Permalink
SQUASHME: prune h2_poll critical section
Browse files Browse the repository at this point in the history
  • Loading branch information
dridi committed Oct 16, 2023
1 parent 7c393ba commit 5983c50
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bin/varnishd/http2/cache_http2_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,17 +442,10 @@ static int v_matchproto_(vtr_poll_f)
h2_poll(struct req *req)
{
struct h2_req *r2;
int r = 1;

CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
CAST_OBJ_NOTNULL(r2, req->transport_priv, H2_REQ_MAGIC);

Lck_Lock(&r2->h2sess->sess->mtx);
if (r2->error)
r = -1;
Lck_Unlock(&r2->h2sess->sess->mtx);

return (r);
return (r2->error ? -1 : 1);
}

struct transport HTTP2_transport = {
Expand Down

0 comments on commit 5983c50

Please sign in to comment.