Commit 29f4703e authored by Sergey Lyubka's avatar Sergey Lyubka

Adding zero-length chunk for long-running requests

parent 3cec6f67
...@@ -4931,6 +4931,9 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) { ...@@ -4931,6 +4931,9 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) {
case NS_POLL: case NS_POLL:
if (call_user(conn, MG_POLL) == MG_TRUE) { if (call_user(conn, MG_POLL) == MG_TRUE) {
if (conn->ns_conn->flags & MG_HEADERS_SENT) {
write_terminating_chunk(conn);
}
close_local_endpoint(conn); close_local_endpoint(conn);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment