Skip to content
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

Introduced keep alive monitor mechanism in the binary port. Introduce… #4958

Open
wants to merge 3 commits into
base: feat-2.0
Choose a base branch
from

Conversation

zajko
Copy link

@zajko zajko commented Nov 12, 2024

…d two new config properties for the binary port: keepalive_check_interval, keepalive_no_activity_timeout. From now on if a binary port connection is not used for a configured period of time it will be closed on the node side. Introduced a binary request variant BinaryRequest::KeepAliveRequest so that clients that want to keep the connection alive can use this low-overhead way to do that.

…d two new config properties for the binary port: keepalive_check_interval, keepalive_no_activity_timeout. From now on if a binary port connection is not used for a configured period of time it will be closed on the node side. Introduced a binary request variant BinaryRequest::KeepAliveRequest so that clients that want to keep the connection alive can use this low-overhead way to do that.
let entity_hash_addr: HashAddr = PackageAddr::try_from(package_addr_bytes.as_ref())
.map_err(|error| FromStrError::Package(error.to_string()))?;
return Ok(Key::State(EntityAddr::SmartContract(entity_hash_addr)));
if let Some(entity_addr_formatted) = input.strip_prefix(STATE_PREFIX) {
Copy link
Author

Choose a reason for hiding this comment

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

I piggy backed this change because it makes sidecars tests fail.
I consulted with @mpapierski that deserialising always to Key::State(EntityAddr::SmartContract) is a bug, so I changed it that it will consider all EntityAddr possibilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants