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
d93ec704
Commit
d93ec704
authored
Nov 19, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore upstream failures on continous stages
parent
0f8b1e4a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
libcaf_core/src/stream_manager.cpp
libcaf_core/src/stream_manager.cpp
+11
-4
No files found.
libcaf_core/src/stream_manager.cpp
View file @
d93ec704
...
...
@@ -51,16 +51,23 @@ void stream_manager::handle(inbound_path*, downstream_msg::batch&) {
CAF_LOG_WARNING
(
"unimplemented base handler for batches called"
);
}
void
stream_manager
::
handle
(
inbound_path
*
,
downstream_msg
::
close
&
)
{
// nop
void
stream_manager
::
handle
(
inbound_path
*
in
,
downstream_msg
::
close
&
)
{
// Reset the actor handle to make sure no further messages travel upstream.
in
->
hdl
=
nullptr
;
}
void
stream_manager
::
handle
(
inbound_path
*
in
,
downstream_msg
::
forced_close
&
x
)
{
CAF_ASSERT
(
in
!=
nullptr
);
CAF_LOG_TRACE
(
CAF_ARG2
(
"slots"
,
in
->
slots
)
<<
CAF_ARG
(
x
));
// Reset the actor handle to make sure no further message
travels
upstream.
// Reset the actor handle to make sure no further message
s travel
upstream.
in
->
hdl
=
nullptr
;
// A continuous stream exists independent of sources. Hence, we ignore
// upstream errors in this case.
if
(
!
continuous
())
{
stop
(
std
::
move
(
x
.
reason
));
}
else
{
CAF_LOG_INFO
(
"received (and ignored) forced_close from a source"
);
}
}
bool
stream_manager
::
handle
(
stream_slots
slots
,
upstream_msg
::
ack_open
&
x
)
{
...
...
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