Skip to content

Update the socket path to new location #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/core/basic_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ impl BasicClient {
/// Before you can use this client for cryptographic operations, you first need to call
/// [`set_implicit_provider`](#method.set_implicit_provider). In order to get a list of
/// supported providers, call the [`list_providers`](#method.list_providers) method.
///
/// This client will use the default configuration. That includes using a Protobuf converter
/// for message bodies and a Unix Domain Socket IPC handler.
pub fn new(auth_data: AuthenticationData) -> Self {
BasicClient {
op_client: Default::default(),
Expand Down
2 changes: 1 addition & 1 deletion src/core/ipc_handler/unix_socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use std::io::{Error, ErrorKind};
#[cfg(not(feature = "no-fs-permission-check"))]
use std::os::unix::fs::MetadataExt;

const DEFAULT_SOCKET_PATH: &str = "/tmp/parsec/parsec.sock";
const DEFAULT_SOCKET_PATH: &str = "/run/parsec/parsec.sock";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a way to modify the path of the socket at runtime, so for test I think we can change this path to /tmp/parsec.sock in the e2e_tests folder directly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is? Wow, I had some good foresight there

const DEFAULT_TIMEOUT: Duration = Duration::from_secs(1);

/// IPC handler for Unix domain sockets
Expand Down