Open weiyuhang2011 opened 3 months ago
Hello @weiyuhang2011, I just patched a fix for this issue. You can use the karyon_jsonrpc from the master branch until I deploy the new changes and fixes to crates.io.
Thanks for your quick response. But I dont't understand why it can't connect to the server. I think I used the correct socket address.
Hey @weiyuhang2011, yes, the address is correct. You can also just use the path: Server::builder("unix:/tmp/karyon-test.sock")
. However, the issue was due to a bug in handling new connections from the server side. It was trying to resolve the client address for debugging.
You can check the patch here: https://github.com/karyontech/karyon/commit/6c65232d741229635151671708556b9af7ef75ac
I tried to build a jsonrpc server using unix socket. But it seems like the server throw panic on handling connection.
This is my server code:
I use
nc -U /tmp/karyon-test.sock
to test the server. Below is the server log: