mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-28 12:30:58 +00:00
keeping alive long-lived connections
This commit is contained in:
1 parent
abcea07641
commit
3cec6f6745
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user