We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28f4abf commit 5267f14Copy full SHA for 5267f14
proto_proxy.c
@@ -689,6 +689,7 @@ void complete_nread_proxy(conn *c) {
689
690
assert(c->proxy_rctx);
691
mcp_rcontext_t *rctx = c->proxy_rctx;
692
+ c->proxy_rctx = NULL;
693
mcp_request_t *rq = rctx->request;
694
695
if (strncmp((char *)c->item + rq->pr.vlen - 2, "\r\n", 2) != 0) {
@@ -707,7 +708,6 @@ void complete_nread_proxy(conn *c) {
707
708
rq->pr.vbuf = c->item;
709
c->item = NULL;
710
c->item_malloced = false;
- c->proxy_rctx = NULL;
711
pthread_mutex_lock(&thr->proxy_limit_lock);
712
thr->proxy_buffer_memory_used += rq->pr.vlen;
713
pthread_mutex_unlock(&thr->proxy_limit_lock);
0 commit comments