Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
dfa83f2c
Commit
dfa83f2c
authored
Feb 01, 2017
by
Sergey Lyubka
Committed by
Cesanta Bot
Feb 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix TCP close sequence
PUBLISHED_FROM=ed6cf7fd63b6f80d5c37ab93899ecd09bac6102b
parent
91bdbc51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
mongoose.c
mongoose.c
+6
-5
No files found.
mongoose.c
View file @
dfa83f2c
...
...
@@ -14146,6 +14146,12 @@ void mg_ev_mgr_lwip_process_signals(struct mg_mgr *mgr) {
case
MG_SIG_SENT_CB
:
{
if
(
cs
->
num_sent
>
0
)
mg_if_sent_cb
(
nc
,
cs
->
num_sent
);
cs
->
num_sent
=
0
;
if
(
nc
->
send_mbuf
.
len
==
0
&&
(
nc
->
flags
&
MG_F_SEND_AND_CLOSE
)
&&
!
(
nc
->
flags
&
MG_F_WANT_WRITE
))
{
mg_close_conn
(
nc
);
}
break
;
}
case
MG_SIG_TOMBSTONE
:
{
...
...
@@ -14203,11 +14209,6 @@ time_t mg_lwip_if_poll(struct mg_iface *iface, int timeout_ms) {
}
mg_if_poll
(
nc
,
now
);
mg_if_timer
(
nc
,
now
);
if
(
nc
->
send_mbuf
.
len
==
0
&&
(
nc
->
flags
&
MG_F_SEND_AND_CLOSE
)
&&
!
(
nc
->
flags
&
MG_F_WANT_WRITE
))
{
mg_close_conn
(
nc
);
continue
;
}
#if MG_ENABLE_SSL
if
((
nc
->
flags
&
MG_F_SSL
)
&&
cs
!=
NULL
&&
cs
->
pcb
.
tcp
!=
NULL
&&
cs
->
pcb
.
tcp
->
state
==
ESTABLISHED
)
{
...
...
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