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
f3c6d319
Commit
f3c6d319
authored
Mar 06, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send client handshake immediately
parent
025ee58e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
libcaf_io/src/io/basp/instance.cpp
libcaf_io/src/io/basp/instance.cpp
+0
-2
libcaf_io/src/io/basp_broker.cpp
libcaf_io/src/io/basp_broker.cpp
+3
-0
No files found.
libcaf_io/src/io/basp/instance.cpp
View file @
f3c6d319
...
@@ -344,10 +344,8 @@ connection_state instance::handle(execution_unit* ctx, connection_handle hdl,
...
@@ -344,10 +344,8 @@ connection_state instance::handle(execution_unit* ctx, connection_handle hdl,
CAF_LOG_ERROR
(
"no route to host after server handshake"
);
CAF_LOG_ERROR
(
"no route to host after server handshake"
);
return
no_route_to_receiving_node
;
return
no_route_to_receiving_node
;
}
}
write_client_handshake
(
ctx
,
callee_
.
get_buffer
(
path
->
hdl
));
callee_
.
learned_new_node_directly
(
source_node
,
was_indirect
);
callee_
.
learned_new_node_directly
(
source_node
,
was_indirect
);
callee_
.
finalize_handshake
(
source_node
,
aid
,
sigs
);
callee_
.
finalize_handshake
(
source_node
,
aid
,
sigs
);
flush
(
*
path
);
break
;
break
;
}
}
case
message_type
:
:
client_handshake
:
{
case
message_type
:
:
client_handshake
:
{
...
...
libcaf_io/src/io/basp_broker.cpp
View file @
f3c6d319
...
@@ -283,6 +283,9 @@ behavior basp_broker::make_behavior() {
...
@@ -283,6 +283,9 @@ behavior basp_broker::make_behavior() {
ctx
.
callback
=
rp
;
ctx
.
callback
=
rp
;
// await server handshake
// await server handshake
configure_read
(
hdl
,
receive_policy
::
exactly
(
basp
::
header_size
));
configure_read
(
hdl
,
receive_policy
::
exactly
(
basp
::
header_size
));
// send client handshake
instance
.
write_client_handshake
(
context
(),
get_buffer
(
hdl
));
flush
(
hdl
);
},
},
[
=
](
delete_atom
,
const
node_id
&
nid
,
actor_id
aid
)
{
[
=
](
delete_atom
,
const
node_id
&
nid
,
actor_id
aid
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
nid
)
<<
", "
<<
CAF_ARG
(
aid
));
CAF_LOG_TRACE
(
CAF_ARG
(
nid
)
<<
", "
<<
CAF_ARG
(
aid
));
...
...
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