mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
Merge pull request #2194 from cesanta/frp
Fix http-reverse-proxy for keep-alive incoming connections
This commit is contained in:
1 file changed
+1
@@ -64,6 +64,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
|||||||
}
|
}
|
||||||
c->fn_data = c2;
|
c->fn_data = c2;
|
||||||
forward_request(hm, c2);
|
forward_request(hm, c2);
|
||||||
|
c->is_resp = 0; // process further msgs in keep-alive connection
|
||||||
c2->is_hexdumping = 1;
|
c2->is_hexdumping = 1;
|
||||||
}
|
}
|
||||||
} else if (ev == MG_EV_CLOSE) {
|
} else if (ev == MG_EV_CLOSE) {
|
||||||
|
|||||||
Reference in new issue
Block a user