Closed Tim-Zhang closed 3 years ago
Start the server
$cargo run --example server
Show the socket
tim@k:~/project/ttrpc-rust/example$ netstat -an|grep /tmp/1 unix 2 [ ACC ] STREAM LISTENING 107020596 @/tmp/1@
We can see the @/tmp/1@ has a redundant suffix @, and this server can not be connected by a normal client(the client in our example has the suffix too, so there is no problem with it)
@/tmp/1@
@
And the problem caused by: https://github.com/containerd/ttrpc-rust/blob/3f93cd63d4b0953ae23a8e66bda9673d7f658bfa/src/common.rs#L82
Start the server
Show the socket
We can see the
@/tmp/1@
has a redundant suffix@
, and this server can not be connected by a normal client(the client in our example has the suffix too, so there is no problem with it)And the problem caused by: https://github.com/containerd/ttrpc-rust/blob/3f93cd63d4b0953ae23a8e66bda9673d7f658bfa/src/common.rs#L82