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
421b420a
Commit
421b420a
authored
Jun 29, 2016
by
Alexander Alashkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mp+keepalive combination
PUBLISHED_FROM=dbfcfa91ad85d6447726d0d7e9fe15709f4c4646
parent
a478dc59
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 @
421b420a
...
@@ -4227,11 +4227,9 @@ static struct mg_http_proto_data *mg_http_get_proto_data(
...
@@ -4227,11 +4227,9 @@ static struct mg_http_proto_data *mg_http_get_proto_data(
static
void
mg_http_free_proto_data_mp_stream
(
static
void
mg_http_free_proto_data_mp_stream
(
struct
mg_http_multipart_stream
*
mp
)
{
struct
mg_http_multipart_stream
*
mp
)
{
free
((
void
*
)
mp
->
boundary
);
free
((
void
*
)
mp
->
boundary
);
mp
->
boundary
=
NULL
;
free
((
void
*
)
mp
->
var_name
);
free
((
void
*
)
mp
->
var_name
);
mp
->
var_name
=
NULL
;
free
((
void
*
)
mp
->
file_name
);
free
((
void
*
)
mp
->
file_name
);
m
p
->
file_name
=
NULL
;
m
emset
(
mp
,
0
,
sizeof
(
*
mp
))
;
}
}
#endif
#endif
...
@@ -5267,6 +5265,7 @@ static void mg_http_multipart_begin(struct mg_connection *nc,
...
@@ -5267,6 +5265,7 @@ static void mg_http_multipart_begin(struct mg_connection *nc,
*/
*/
nc
->
flags
|=
MG_F_CLOSE_IMMEDIATELY
;
nc
->
flags
|=
MG_F_CLOSE_IMMEDIATELY
;
}
else
{
}
else
{
pd
->
mp_stream
.
state
=
MPS_BEGIN
;
pd
->
mp_stream
.
boundary
=
strdup
(
boundary
);
pd
->
mp_stream
.
boundary
=
strdup
(
boundary
);
pd
->
mp_stream
.
boundary_len
=
strlen
(
boundary
);
pd
->
mp_stream
.
boundary_len
=
strlen
(
boundary
);
pd
->
mp_stream
.
var_name
=
pd
->
mp_stream
.
file_name
=
NULL
;
pd
->
mp_stream
.
var_name
=
pd
->
mp_stream
.
file_name
=
NULL
;
...
...
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