Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
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-incubator
Commits
95345f1b
Commit
95345f1b
authored
Jul 23, 2021
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly handle discarded socket managers
parent
cc2050ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libcaf_net/src/multiplexer.cpp
libcaf_net/src/multiplexer.cpp
+4
-4
No files found.
libcaf_net/src/multiplexer.cpp
View file @
95345f1b
...
@@ -120,8 +120,8 @@ void multiplexer::register_reading(const socket_manager_ptr& mgr) {
...
@@ -120,8 +120,8 @@ void multiplexer::register_reading(const socket_manager_ptr& mgr) {
if
(
shutting_down_
)
{
if
(
shutting_down_
)
{
// discard
// discard
}
else
if
(
mgr
->
mask
()
!=
operation
::
none
)
{
}
else
if
(
mgr
->
mask
()
!=
operation
::
none
)
{
CAF_ASSERT
(
index_of
(
mgr
)
!=
-
1
);
if
(
auto
index
=
index_of
(
mgr
);
if
(
mgr
->
mask_add
(
operation
::
read
))
{
index
!=
-
1
&&
mgr
->
mask_add
(
operation
::
read
))
{
auto
&
fd
=
pollset_
[
index_of
(
mgr
)];
auto
&
fd
=
pollset_
[
index_of
(
mgr
)];
fd
.
events
|=
input_mask
;
fd
.
events
|=
input_mask
;
}
}
...
@@ -139,8 +139,8 @@ void multiplexer::register_writing(const socket_manager_ptr& mgr) {
...
@@ -139,8 +139,8 @@ void multiplexer::register_writing(const socket_manager_ptr& mgr) {
if
(
shutting_down_
)
{
if
(
shutting_down_
)
{
// discard
// discard
}
else
if
(
mgr
->
mask
()
!=
operation
::
none
)
{
}
else
if
(
mgr
->
mask
()
!=
operation
::
none
)
{
CAF_ASSERT
(
index_of
(
mgr
)
!=
-
1
);
if
(
auto
index
=
index_of
(
mgr
);
if
(
mgr
->
mask_add
(
operation
::
write
))
{
index
!=
-
1
&&
mgr
->
mask_add
(
operation
::
write
))
{
auto
&
fd
=
pollset_
[
index_of
(
mgr
)];
auto
&
fd
=
pollset_
[
index_of
(
mgr
)];
fd
.
events
|=
output_mask
;
fd
.
events
|=
output_mask
;
}
}
...
...
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