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
8b0c4fbd
Commit
8b0c4fbd
authored
Oct 09, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix result handling of consume_(text|binary)
parent
866dc9b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libcaf_net/caf/net/web_socket_framing.hpp
libcaf_net/caf/net/web_socket_framing.hpp
+2
-2
No files found.
libcaf_net/caf/net/web_socket_framing.hpp
View file @
8b0c4fbd
...
...
@@ -261,10 +261,10 @@ private:
case
detail
:
:
rfc6455
::
text_frame
:
{
string_view
text
{
reinterpret_cast
<
const
char
*>
(
payload
.
data
()),
payload
.
size
()};
return
upper_layer_
.
consume_text
(
this_layer_ptr
(
down
),
text
);
return
upper_layer_
.
consume_text
(
this_layer_ptr
(
down
),
text
)
>=
0
;
}
case
detail
:
:
rfc6455
::
binary_frame
:
return
upper_layer_
.
consume_binary
(
this_layer_ptr
(
down
),
payload
);
return
upper_layer_
.
consume_binary
(
this_layer_ptr
(
down
),
payload
)
>=
0
;
case
detail
:
:
rfc6455
::
connection_close
:
down
->
abort_reason
(
sec
::
connection_closed
);
return
false
;
...
...
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