Discussion:
[capnproto] RPC Server Exception on using Unix Socket Domains
r***@gmail.com
2018-11-17 07:11:13 UTC
Permalink
Hi
I used following code for my sever implementation:

kj::AsyncIoContext asyncIO = kj::setupAsyncIo();
auto &waitScope = asyncIO.waitScope;
auto &ioProvider = *asyncIO.provider;
auto &network = ioProvider.getNetwork();
auto addr = network.parseAddress(instance->address).wait(waitScope);
auto listner = addr->listen();
capnp::TwoPartyServer server(kj::heap<RPCHandler>());
auto serverPromise = server.listen(*listner);


but when I pass a unix domain socket path as address, got following error:

libc++abi.dylib: terminating with uncaught exception of type kj::
ExceptionImpl: kj/async-io-unix.c++:941: failed: DNS lookup failed.; params.host
= /Users/reza/.userdata/rpc/accounts; params.service = ; gai_strerror(status
) = nodename nor servname provided, or not known
stack: 1025a8636 1025b0435 1025b00bd 102593ec2 1025944dc 102594323 102575426
1025954f4 1024c5656 1024c50c0 1024c4d47 7fff719e1660 7fff719e150c
7fff719e0bf8

could anyone help me on this?

thanks,
Reza
--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+***@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
David Renshaw
2018-11-17 13:06:26 UTC
Permalink
Does it work if you prefix the address with "unix:", like "un
ix:/Users/reza/.userdata/rpc/accounts"?

https://github.com/capnproto/capnproto/blob/12d346b2ab99149f2779cc98fbaf2d6f0a8ea9bb/c%2B%2B/src/kj/async-io-unix.c%2B%2B#L608
Post by r***@gmail.com
Hi
kj::AsyncIoContext asyncIO = kj::setupAsyncIo();
auto &waitScope = asyncIO.waitScope;
auto &ioProvider = *asyncIO.provider;
auto &network = ioProvider.getNetwork();
auto addr = network.parseAddress(instance->address).wait(waitScope);
auto listner = addr->listen();
capnp::TwoPartyServer server(kj::heap<RPCHandler>());
auto serverPromise = server.listen(*listner);
ExceptionImpl: kj/async-io-unix.c++:941: failed: DNS lookup failed.;
params.host = /Users/reza/.userdata/rpc/accounts; params.service = ;
gai_strerror(status) = nodename nor servname provided, or not known
stack: 1025a8636 1025b0435 1025b00bd 102593ec2 1025944dc 102594323
102575426 1025954f4 1024c5656 1024c50c0 1024c4d47 7fff719e1660
7fff719e150c 7fff719e0bf8
could anyone help me on this?
thanks,
Reza
--
You received this message because you are subscribed to the Google Groups
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/capnproto.
--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+***@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
r***@gmail.com
2018-11-17 13:56:42 UTC
Permalink
using `unix:` prefix soved the problem, thanks.
Post by David Renshaw
Does it work if you prefix the address with "unix:", like "un
ix:/Users/reza/.userdata/rpc/accounts"?
https://github.com/capnproto/capnproto/blob/12d346b2ab99149f2779cc98fbaf2d6f0a8ea9bb/c%2B%2B/src/kj/async-io-unix.c%2B%2B#L608
Post by r***@gmail.com
Hi
kj::AsyncIoContext asyncIO = kj::setupAsyncIo();
auto &waitScope = asyncIO.waitScope;
auto &ioProvider = *asyncIO.provider;
auto &network = ioProvider.getNetwork();
auto addr = network.parseAddress(instance->address).wait(waitScope);
auto listner = addr->listen();
capnp::TwoPartyServer server(kj::heap<RPCHandler>());
auto serverPromise = server.listen(*listner);
ExceptionImpl: kj/async-io-unix.c++:941: failed: DNS lookup failed.;
params.host = /Users/reza/.userdata/rpc/accounts; params.service = ;
gai_strerror(status) = nodename nor servname provided, or not known
stack: 1025a8636 1025b0435 1025b00bd 102593ec2 1025944dc 102594323
102575426 1025954f4 1024c5656 1024c50c0 1024c4d47 7fff719e1660
7fff719e150c 7fff719e0bf8
could anyone help me on this?
thanks,
Reza
--
You received this message because you are subscribed to the Google Groups
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/capnproto.
--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+***@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
Continue reading on narkive:
Search results for '[capnproto] RPC Server Exception on using Unix Socket Domains' (Questions and Answers)
5
replies
can i get question answer of asp.net ?
started 2006-10-11 00:02:47 UTC
software
Loading...