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

Make agent's outgoing connect async #2744

Open
aviramha opened this issue Sep 9, 2024 · 0 comments
Open

Make agent's outgoing connect async #2744

aviramha opened this issue Sep 9, 2024 · 0 comments
Assignees

Comments

@aviramha
Copy link
Member

aviramha commented Sep 9, 2024

When agent handles connect request and times out, it will not process any message coming from layer for 3s

            LayerTcpOutgoing::Connect(LayerConnect { remote_address }) => {
                let daemon_connect = time::timeout(
                    Self::CONNECT_TIMEOUT,
                    SocketStream::connect(remote_address.clone(), self.pid),
                )
                .await

We should make the result async instead of sync probably after closing #1898 (since it won't have any effect beforethen)

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

No branches or pull requests

2 participants