Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
f0301e51
Unverified
Commit
f0301e51
authored
Jul 16, 2020
by
Joseph Noir
Committed by
GitHub
Jul 16, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1120
Close socket if SSL session initialization fails
parents
22ccaba0
0f47d22e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
libcaf_openssl/src/openssl/middleman_actor.cpp
libcaf_openssl/src/openssl/middleman_actor.cpp
+6
-1
No files found.
libcaf_openssl/src/openssl/middleman_actor.cpp
View file @
f0301e51
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "caf/actor.hpp"
#include "caf/actor.hpp"
#include "caf/actor_proxy.hpp"
#include "caf/actor_proxy.hpp"
#include "caf/actor_system_config.hpp"
#include "caf/actor_system_config.hpp"
#include "caf/detail/socket_guard.hpp"
#include "caf/logger.hpp"
#include "caf/logger.hpp"
#include "caf/node_id.hpp"
#include "caf/node_id.hpp"
#include "caf/sec.hpp"
#include "caf/sec.hpp"
...
@@ -217,6 +218,7 @@ public:
...
@@ -217,6 +218,7 @@ public:
return
false
;
return
false
;
auto
&
dm
=
acceptor_
.
backend
();
auto
&
dm
=
acceptor_
.
backend
();
auto
fd
=
acceptor_
.
accepted_socket
();
auto
fd
=
acceptor_
.
accepted_socket
();
detail
::
socket_guard
sguard
{
fd
};
io
::
network
::
nonblocking
(
fd
,
true
);
io
::
network
::
nonblocking
(
fd
,
true
);
auto
sssn
=
make_session
(
parent
()
->
system
(),
fd
,
true
);
auto
sssn
=
make_session
(
parent
()
->
system
(),
fd
,
true
);
if
(
sssn
==
nullptr
)
{
if
(
sssn
==
nullptr
)
{
...
@@ -226,7 +228,10 @@ public:
...
@@ -226,7 +228,10 @@ public:
auto
scrb
=
make_counted
<
scribe_impl
>
(
dm
,
fd
,
std
::
move
(
sssn
));
auto
scrb
=
make_counted
<
scribe_impl
>
(
dm
,
fd
,
std
::
move
(
sssn
));
auto
hdl
=
scrb
->
hdl
();
auto
hdl
=
scrb
->
hdl
();
parent
()
->
add_scribe
(
std
::
move
(
scrb
));
parent
()
->
add_scribe
(
std
::
move
(
scrb
));
return
doorman
::
new_connection
(
&
dm
,
hdl
);
auto
result
=
doorman
::
new_connection
(
&
dm
,
hdl
);
if
(
result
)
sguard
.
release
();
return
result
;
}
}
};
};
...
...
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