keeping alive long-lived connections

This commit is contained in:
Sergey Lyubka committed 2014-06-12 10:58:49 +01:00
1 parent abcea07641
commit 3cec6f6745
1 file changed
+1 -1
+1 -1
View File
@@ -4931,7 +4931,7 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) {
case NS_POLL:
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) {