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
ffe83051
Commit
ffe83051
authored
Mar 04, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build fixed
parent
93cd77ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
server.c
examples/server.c
+1
-0
mongoose.c
mongoose.c
+1
-2
No files found.
examples/server.c
View file @
ffe83051
...
...
@@ -25,6 +25,7 @@
#define _WIN32_WINNT 0x500 // Enable MIIM_BITMAP
#define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
#define _XOPEN_SOURCE 600 // For PATH_MAX on linux
#undef WIN32_LEAN_AND_MEAN // Let windows.h always include winsock2.h
#include <sys/stat.h>
#include <stdio.h>
...
...
mongoose.c
View file @
ffe83051
...
...
@@ -2851,7 +2851,7 @@ static void call_request_handler_if_data_is_buffered(struct connection *conn) {
}
else
#endif
if
((
size_t
)
loc
->
len
>=
c
->
content_len
&&
call_request_handler
(
conn
)
==
MG_
REQUEST_NOT_PROCESSED
)
{
call_request_handler
(
conn
)
==
MG_
FALSE
)
{
open_local_endpoint
(
conn
,
1
);
}
}
...
...
@@ -4354,7 +4354,6 @@ struct mg_connection *mg_connect(struct mg_server *server, const char *host,
conn
->
mg_conn
.
server_param
=
server
->
ns_server
.
server_data
;
conn
->
birth_time
=
time
(
NULL
);
conn
->
ns_conn
->
flags
=
NSF_CONNECTING
;
conn
->
mg_conn
.
status_code
=
MG_CONNECT_FAILURE
;
return
&
conn
->
mg_conn
;
}
...
...
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