Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
3070f627
Commit
3070f627
authored
Nov 20, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement handling of Resolve messages. Though currently they are never sent.
parent
e4a5344b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
rpc-test.c++
c++/src/capnp/rpc-test.c++
+7
-4
rpc.c++
c++/src/capnp/rpc.c++
+0
-0
No files found.
c++/src/capnp/rpc-test.c++
View file @
3070f627
...
...
@@ -278,10 +278,9 @@ TEST_F(RpcTest, Basic) {
request1
.
setJ
(
true
);
auto
promise1
=
request1
.
send
();
auto
request2
=
client
.
bazRequest
();
initTestMessage
(
request2
.
initS
());
auto
promise2
=
request2
.
send
();
// We used to call bar() after baz(), hence the numbering, but this masked the case where the
// RPC system actually disconnected on bar() (thus returning an exception, which we decided
// was expected).
bool
barFailed
=
false
;
auto
request3
=
client
.
barRequest
();
auto
promise3
=
loop
.
there
(
request3
.
send
(),
...
...
@@ -291,6 +290,10 @@ TEST_F(RpcTest, Basic) {
barFailed
=
true
;
});
auto
request2
=
client
.
bazRequest
();
initTestMessage
(
request2
.
initS
());
auto
promise2
=
request2
.
send
();
EXPECT_EQ
(
0
,
restorer
.
callCount
);
auto
response1
=
loop
.
wait
(
kj
::
mv
(
promise1
));
...
...
c++/src/capnp/rpc.c++
View file @
3070f627
This diff is collapsed.
Click to expand it.
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