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
d665d9e9
Commit
d665d9e9
authored
9 years ago
by
Deomid Ryabkov
Committed by
rojer
9 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always Be Closing
PUBLISHED_FROM=29ca7cdd9024790bd75892f9f67b3f83a6bd00d1
parent
a5e10450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
mongoose.c
mongoose.c
+2
-3
No files found.
mongoose.c
View file @
d665d9e9
...
@@ -1905,9 +1905,7 @@ static void mg_destroy_conn(struct mg_connection *conn) {
...
@@ -1905,9 +1905,7 @@ static void mg_destroy_conn(struct mg_connection *conn) {
void
mg_close_conn
(
struct
mg_connection
*
conn
)
{
void
mg_close_conn
(
struct
mg_connection
*
conn
)
{
DBG
((
"%p %lu"
,
conn
,
conn
->
flags
));
DBG
((
"%p %lu"
,
conn
,
conn
->
flags
));
if
(
!
(
conn
->
flags
&
MG_F_CONNECTING
))
{
mg_call
(
conn
,
NULL
,
MG_EV_CLOSE
,
NULL
);
mg_call
(
conn
,
NULL
,
MG_EV_CLOSE
,
NULL
);
}
mg_remove_conn
(
conn
);
mg_remove_conn
(
conn
);
mg_destroy_conn
(
conn
);
mg_destroy_conn
(
conn
);
}
}
...
@@ -2550,6 +2548,7 @@ static void resolve_cb(struct mg_dns_message *msg, void *data) {
...
@@ -2550,6 +2548,7 @@ static void resolve_cb(struct mg_dns_message *msg, void *data) {
* If we get there was no MG_DNS_A_RECORD in the answer
* If we get there was no MG_DNS_A_RECORD in the answer
*/
*/
mg_call
(
nc
,
NULL
,
MG_EV_CONNECT
,
&
failure
);
mg_call
(
nc
,
NULL
,
MG_EV_CONNECT
,
&
failure
);
mg_call
(
nc
,
NULL
,
MG_EV_CLOSE
,
NULL
);
mg_destroy_conn
(
nc
);
mg_destroy_conn
(
nc
);
}
}
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
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