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
cc2050ac
Commit
cc2050ac
authored
Jul 23, 2021
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve error reporting
parent
c687b56c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
libcaf_net/caf/net/stream_transport.hpp
libcaf_net/caf/net/stream_transport.hpp
+4
-2
No files found.
libcaf_net/caf/net/stream_transport.hpp
View file @
cc2050ac
...
@@ -214,7 +214,8 @@ public:
...
@@ -214,7 +214,8 @@ public:
delta_offset_
=
offset_
;
delta_offset_
=
offset_
;
}
else
if
(
consumed
<
0
)
{
}
else
if
(
consumed
<
0
)
{
upper_layer_
.
abort
(
this_layer_ptr
,
upper_layer_
.
abort
(
this_layer_ptr
,
parent
->
abort_reason_or
(
caf
::
sec
::
runtime_error
));
parent
->
abort_reason_or
(
caf
::
sec
::
runtime_error
,
"consumed < 0"
));
return
false
;
return
false
;
}
}
// Our thresholds may have changed if the upper layer called
// Our thresholds may have changed if the upper layer called
...
@@ -252,7 +253,8 @@ public:
...
@@ -252,7 +253,8 @@ public:
auto
this_layer_ptr
=
make_stream_oriented_layer_ptr
(
this
,
parent
);
auto
this_layer_ptr
=
make_stream_oriented_layer_ptr
(
this
,
parent
);
if
(
!
upper_layer_
.
prepare_send
(
this_layer_ptr
))
{
if
(
!
upper_layer_
.
prepare_send
(
this_layer_ptr
))
{
upper_layer_
.
abort
(
this_layer_ptr
,
upper_layer_
.
abort
(
this_layer_ptr
,
parent
->
abort_reason_or
(
caf
::
sec
::
runtime_error
));
parent
->
abort_reason_or
(
caf
::
sec
::
runtime_error
,
"prepare_send failed"
));
return
false
;
return
false
;
}
}
if
(
write_buf_
.
empty
())
if
(
write_buf_
.
empty
())
...
...
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