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
8966f47c
Commit
8966f47c
authored
Oct 23, 2012
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://github.com/valenok/mongoose
parents
e251375c
672e1ec8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mongoose.c
mongoose.c
+3
-1
No files found.
mongoose.c
View file @
8966f47c
...
@@ -1478,7 +1478,7 @@ static int pull(FILE *fp, struct mg_connection *conn, char *buf, int len) {
...
@@ -1478,7 +1478,7 @@ static int pull(FILE *fp, struct mg_connection *conn, char *buf, int len) {
// pipe, fread() may block until IO buffer is filled up. We cannot afford
// pipe, fread() may block until IO buffer is filled up. We cannot afford
// to block and must pass all read bytes immediately to the client.
// to block and must pass all read bytes immediately to the client.
nread
=
read
(
fileno
(
fp
),
buf
,
(
size_t
)
len
);
nread
=
read
(
fileno
(
fp
),
buf
,
(
size_t
)
len
);
}
else
if
(
!
wait_until_socket_is_readable
(
conn
))
{
}
else
if
(
!
conn
->
must_close
&&
!
wait_until_socket_is_readable
(
conn
))
{
nread
=
-
1
;
nread
=
-
1
;
}
else
if
(
conn
->
ssl
!=
NULL
)
{
}
else
if
(
conn
->
ssl
!=
NULL
)
{
nread
=
SSL_read
(
conn
->
ssl
,
buf
,
len
);
nread
=
SSL_read
(
conn
->
ssl
,
buf
,
len
);
...
@@ -4515,6 +4515,8 @@ static void close_socket_gracefully(struct mg_connection *conn) {
...
@@ -4515,6 +4515,8 @@ static void close_socket_gracefully(struct mg_connection *conn) {
}
}
static
void
close_connection
(
struct
mg_connection
*
conn
)
{
static
void
close_connection
(
struct
mg_connection
*
conn
)
{
conn
->
must_close
=
1
;
if
(
conn
->
ssl
)
{
if
(
conn
->
ssl
)
{
SSL_free
(
conn
->
ssl
);
SSL_free
(
conn
->
ssl
);
conn
->
ssl
=
NULL
;
conn
->
ssl
=
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