Skip to content

refactor(adnl): merge AdnlClient::timeout_connect into connect#172

Merged
Keshoid merged 1 commit into
release/nodectl/v0.5.0from
refactor/adnl-connect
May 21, 2026
Merged

refactor(adnl): merge AdnlClient::timeout_connect into connect#172
Keshoid merged 1 commit into
release/nodectl/v0.5.0from
refactor/adnl-connect

Conversation

@Keshoid
Copy link
Copy Markdown
Contributor

@Keshoid Keshoid commented May 21, 2026

Summary

  • Removed the legacy socket2-based AdnlClient::connect and renamed timeout_connect to connect, so the single connect path uses tokio::net::TcpStream::connect wrapped in tokio::time::timeout and does not park a tokio worker on an unresponsive peer.
  • Dropped the previous SO_REUSEADDR flag, which has no effect on outbound TCP clients.
  • Updated ControlClientAdnl call sites in node-control/control-client to call AdnlClient::connect.

Copilot AI review requested due to automatic review settings May 21, 2026 16:01
@Keshoid Keshoid requested a review from bvscd May 21, 2026 16:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Keshoid Keshoid merged commit 3a7e02f into release/nodectl/v0.5.0 May 21, 2026
9 of 10 checks passed
@Keshoid Keshoid deleted the refactor/adnl-connect branch May 21, 2026 16:24
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.

3 participants