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
2cc85236
Commit
2cc85236
authored
Mar 17, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sanity checks
parent
be755881
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
libcaf_core/src/stream_manager.cpp
libcaf_core/src/stream_manager.cpp
+2
-0
No files found.
libcaf_core/src/stream_manager.cpp
View file @
2cc85236
...
@@ -59,6 +59,7 @@ void stream_manager::handle(inbound_path*, downstream_msg::forced_close& x) {
...
@@ -59,6 +59,7 @@ void stream_manager::handle(inbound_path*, downstream_msg::forced_close& x) {
bool
stream_manager
::
handle
(
stream_slots
slots
,
upstream_msg
::
ack_open
&
x
)
{
bool
stream_manager
::
handle
(
stream_slots
slots
,
upstream_msg
::
ack_open
&
x
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
slots
)
<<
CAF_ARG
(
x
));
CAF_LOG_TRACE
(
CAF_ARG
(
slots
)
<<
CAF_ARG
(
x
));
CAF_ASSERT
(
x
.
desired_batch_size
>
0
);
auto
ptr
=
out
().
path
(
slots
.
receiver
);
auto
ptr
=
out
().
path
(
slots
.
receiver
);
if
(
ptr
==
nullptr
)
if
(
ptr
==
nullptr
)
return
false
;
return
false
;
...
@@ -83,6 +84,7 @@ bool stream_manager::handle(stream_slots slots, upstream_msg::ack_open& x) {
...
@@ -83,6 +84,7 @@ bool stream_manager::handle(stream_slots slots, upstream_msg::ack_open& x) {
void
stream_manager
::
handle
(
stream_slots
slots
,
upstream_msg
::
ack_batch
&
x
)
{
void
stream_manager
::
handle
(
stream_slots
slots
,
upstream_msg
::
ack_batch
&
x
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
slots
)
<<
CAF_ARG
(
x
));
CAF_LOG_TRACE
(
CAF_ARG
(
slots
)
<<
CAF_ARG
(
x
));
CAF_ASSERT
(
x
.
desired_batch_size
>
0
);
auto
path
=
out
().
path
(
slots
.
receiver
);
auto
path
=
out
().
path
(
slots
.
receiver
);
if
(
path
!=
nullptr
)
{
if
(
path
!=
nullptr
)
{
path
->
open_credit
+=
x
.
new_capacity
;
path
->
open_credit
+=
x
.
new_capacity
;
...
...
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