Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
ce953575
Commit
ce953575
authored
Sep 15, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Not closing listening connections
parent
80db0485
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mongoose.c
mongoose.c
+5
-4
No files found.
mongoose.c
View file @
ce953575
...
...
@@ -15,7 +15,7 @@
// Alternatively, you can license this library under a commercial
// license, as set out in <http://cesanta.com/>.
//
// $Date: 2014-09-15
00:18:38
UTC $
// $Date: 2014-09-15
12:48:55
UTC $
#ifdef NOEMBED_NET_SKELETON
#include "net_skeleton.h"
...
...
@@ -37,7 +37,7 @@
// Alternatively, you can license this software under a commercial
// license, as set out in <http://cesanta.com/>.
//
// $Date: 2014-09-15
00:18:38
UTC $
// $Date: 2014-09-15
12:48:55
UTC $
#ifndef NS_SKELETON_HEADER_INCLUDED
#define NS_SKELETON_HEADER_INCLUDED
...
...
@@ -276,7 +276,7 @@ int ns_resolve(const char *domain_name, char *ip_addr_buf, size_t buf_len);
// Alternatively, you can license this software under a commercial
// license, as set out in <http://cesanta.com/>.
//
// $Date: 2014-09-15
00:18:38
UTC $
// $Date: 2014-09-15
12:48:55
UTC $
#ifndef NS_MALLOC
...
...
@@ -5131,7 +5131,8 @@ static void mg_ev_handler(struct ns_connection *nc, enum ns_event ev, void *p) {
ping_idle_websocket_connection
(
conn
,
current_time
);
}
if
(
nc
->
last_io_time
+
MONGOOSE_IDLE_TIMEOUT_SECONDS
<
current_time
)
{
if
(
nc
->
listener
==
NULL
&&
nc
->
last_io_time
+
MONGOOSE_IDLE_TIMEOUT_SECONDS
<
current_time
)
{
mg_ev_handler
(
nc
,
NS_CLOSE
,
NULL
);
nc
->
flags
|=
NSF_CLOSE_IMMEDIATELY
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment