Skip to content

fix(wgbridge): replace deprecated AsyncFd::with_interest with AsyncFd::register_with_interest - #997

Merged
kasnder merged 1 commit into
masterfrom
fix/wgbridge-asyncfd-register
Oct 23, 2026
Merged

kasnder merged 1 commit into
masterfrom
fix/wgbridge-asyncfd-register

Conversation

@kasnder

@kasnder kasnder commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

What

Replaces AsyncFd::with_interest with AsyncFd::register_with_interest in wgbridge-rs/src/transport/ip_recv.rs.

Why

In recent versions of Tokio (1.53+), AsyncFd::with_interest was deprecated because it lacks I/O safety bounds. Using AsyncFd::register_with_interest resolves the deprecation warning. Since set_nonblocking(&fd) is called directly prior to registration, the non-blocking safety requirement is satisfied.

@kasnder
kasnder merged commit fa4fce0 into master Oct 23, 2026
3 checks passed
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.

1 participant