Skip to content

Commit

Permalink
Merge pull request #627 from tempesta-tech/ik-fix-issue-626
Browse files Browse the repository at this point in the history
Obtain session information before serving from cache
  • Loading branch information
vankoven authored Oct 31, 2016
2 parents 506b4eb + 2a4dd31 commit def8c11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tempesta_fw/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,11 +802,6 @@ tfw_http_req_cache_cb(TfwHttpReq *req, TfwHttpResp *resp)
int r;
TfwConnection *srv_conn = NULL;

if (resp) {
tfw_http_req_cache_service(req, resp);
return;
}

/*
* Sticky cookie module used for HTTP session identification may send
* a response to the client when sticky cookie presence is enforced and
Expand All @@ -825,6 +820,11 @@ tfw_http_req_cache_cb(TfwHttpReq *req, TfwHttpResp *resp)
return;
}

if (resp) {
tfw_http_req_cache_service(req, resp);
return;
}

/*
* Dispatch request to an appropriate server. Schedulers
* should make a decision based on an unmodified request,
Expand Down

0 comments on commit def8c11

Please sign in to comment.