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
a7a17711
Commit
a7a17711
authored
Mar 10, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resetting endpoint_type in open_local_endpoint()
parent
18e28ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
mongoose.c
mongoose.c
+7
-3
No files found.
mongoose.c
View file @
a7a17711
...
...
@@ -729,7 +729,8 @@ static void ns_write_to_socket(struct ns_connection *conn) {
ns_hexdump
(
conn
,
io
->
buf
,
n
,
"->"
);
#endif
DBG
((
"%p -> %d bytes [%.*s%s]"
,
conn
,
n
,
io
->
len
<
40
?
io
->
len
:
40
,
DBG
((
"%p -> %d bytes %d [%.*s%s]"
,
conn
,
n
,
conn
->
flags
,
io
->
len
<
40
?
io
->
len
:
40
,
io
->
buf
,
io
->
len
<
40
?
""
:
"..."
));
if
(
ns_is_error
(
n
))
{
...
...
@@ -3925,7 +3926,7 @@ static void lsp(struct connection *conn, const char *p, int len, lua_State *L) {
static
void
handle_lsp_request
(
struct
connection
*
conn
,
const
char
*
path
,
file_stat_t
*
st
)
{
void
*
p
=
NULL
;
void
*
p
=
MAP_FAILED
;
lua_State
*
L
=
NULL
;
FILE
*
fp
=
NULL
;
...
...
@@ -3946,7 +3947,7 @@ static void handle_lsp_request(struct connection *conn, const char *path,
}
if
(
L
!=
NULL
)
lua_close
(
L
);
if
(
p
!=
NULL
)
munmap
(
p
,
st
->
st_size
);
if
(
p
!=
MAP_FAILED
)
munmap
(
p
,
st
->
st_size
);
if
(
fp
!=
NULL
)
fclose
(
fp
);
}
#endif // MONGOOSE_USE_LUA
...
...
@@ -4125,6 +4126,9 @@ static void open_local_endpoint(struct connection *conn, int skip_user) {
#endif
#endif
// If EP_USER was set in a prev call, reset it
conn
->
endpoint_type
=
EP_NONE
;
#ifndef MONGOOSE_NO_AUTH
if
(
conn
->
server
->
event_handler
&&
call_user
(
conn
,
MG_AUTH
)
==
MG_FALSE
)
{
mg_send_digest_auth_request
(
&
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