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
44a146fa
Commit
44a146fa
authored
Feb 16, 2015
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SSL fixes
parent
53a55da7
Hide 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) {
...
@@ -901,6 +901,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
}
else
{
}
else
{
ok
=
1
;
ok
=
1
;
}
}
conn
->
flags
&=
~
(
NSF_WANT_READ
|
NSF_WANT_WRITE
);
}
}
#endif
#endif
conn
->
flags
&=
~
NSF_CONNECTING
;
conn
->
flags
&=
~
NSF_CONNECTING
;
...
@@ -929,6 +930,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
...
@@ -929,6 +930,7 @@ static void ns_read_from_socket(struct ns_connection *conn) {
int
ssl_err
=
ns_ssl_err
(
conn
,
res
);
int
ssl_err
=
ns_ssl_err
(
conn
,
res
);
if
(
res
==
1
)
{
if
(
res
==
1
)
{
conn
->
flags
|=
NSF_SSL_HANDSHAKE_DONE
;
conn
->
flags
|=
NSF_SSL_HANDSHAKE_DONE
;
conn
->
flags
&=
~
(
NSF_WANT_READ
|
NSF_WANT_WRITE
);
}
else
if
(
ssl_err
==
SSL_ERROR_WANT_READ
||
}
else
if
(
ssl_err
==
SSL_ERROR_WANT_READ
||
ssl_err
==
SSL_ERROR_WANT_WRITE
)
{
ssl_err
==
SSL_ERROR_WANT_WRITE
)
{
return
;
// Call us again
return
;
// Call us again
...
@@ -966,6 +968,8 @@ static void ns_write_to_socket(struct ns_connection *conn) {
...
@@ -966,6 +968,8 @@ static void ns_write_to_socket(struct ns_connection *conn) {
}
else
{
}
else
{
conn
->
flags
|=
NSF_CLOSE_IMMEDIATELY
;
conn
->
flags
|=
NSF_CLOSE_IMMEDIATELY
;
}
}
}
else
{
conn
->
flags
&=
~
(
NSF_WANT_READ
|
NSF_WANT_WRITE
);
}
}
}
else
}
else
#endif
#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