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
44a146fa
Commit
44a146fa
authored
Feb 16, 2015
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SSL fixes
parent
53a55da7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mongoose.c
mongoose.c
+4
-0
No files found.
mongoose.c
View file @
44a146fa
...
...
@@ -901,6 +901,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
}
else
{
ok
=
1
;
}
conn
->
flags
&=
~
(
NSF_WANT_READ
|
NSF_WANT_WRITE
);
}
#endif
conn
->
flags
&=
~
NSF_CONNECTING
;
...
...
@@ -929,6 +930,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
int
ssl_err
=
ns_ssl_err
(
conn
,
res
);
if
(
res
==
1
)
{
conn
->
flags
|=
NSF_SSL_HANDSHAKE_DONE
;
conn
->
flags
&=
~
(
NSF_WANT_READ
|
NSF_WANT_WRITE
);
}
else
if
(
ssl_err
==
SSL_ERROR_WANT_READ
||
ssl_err
==
SSL_ERROR_WANT_WRITE
)
{
return
;
// Call us again
...
...
@@ -966,6 +968,8 @@ static void ns_write_to_socket(struct ns_connection *conn) {
}
else
{
conn
->
flags
|=
NSF_CLOSE_IMMEDIATELY
;
}
}
else
{
conn
->
flags
&=
~
(
NSF_WANT_READ
|
NSF_WANT_WRITE
);
}
}
else
#endif
...
...
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