Skip to content

Commit

Permalink
Fix stalled response
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangwenyuan committed Sep 5, 2018
1 parent 0f84e6d commit 2d94461
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nuster/cache/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,16 @@ static void nst_cache_engine_handler(struct appctx *appctx) {
struct nst_cache_element *element = NULL;
struct stream_interface *si = appctx->owner;
struct channel *res = si_ic(si);
struct stream *s = si_strm(si);
/* struct stream *s = si_strm(si); */
int ret;

if(appctx->ctx.nuster.cache_engine.element) {
/*
if(appctx->ctx.nuster.cache_engine.element == appctx->ctx.nuster.cache_engine.data->element) {
s->res.analysers = 0;
s->res.analysers |= (AN_RES_WAIT_HTTP | AN_RES_HTTP_PROCESS_BE | AN_RES_HTTP_XFER_BODY);
}
*/
element = appctx->ctx.nuster.cache_engine.element;

ret = ci_putblk(res, element->msg.data, element->msg.len);
Expand Down

0 comments on commit 2d94461

Please sign in to comment.