Commit 3cec6f67 authored by Sergey Lyubka's avatar Sergey Lyubka

keeping alive long-lived connections

parent abcea076
...@@ -4931,7 +4931,7 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) { ...@@ -4931,7 +4931,7 @@ 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) {
nc->flags |= NSF_FINISHED_SENDING_DATA; close_local_endpoint(conn);
} }
if (conn != NULL && conn->endpoint_type == EP_FILE) { if (conn != NULL && conn->endpoint_type == EP_FILE) {
......
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