Skip to content

Conversation

@damanm24
Copy link
Contributor

This PR addresses one of the backlog items in #2313 regarding: leaking connection state.

Copilot AI review requested due to automatic review settings December 16, 2025 17:48
@damanm24 damanm24 requested a review from a team as a code owner December 16, 2025 17:48
Copy link
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.

Pull request overview

This PR implements idle timeout functionality for UDP connections in the consomme network device to prevent connection state leaks. The timeout defaults to 5 minutes per RFC 4787 and can be configured through ConsommeParams.

Key changes:

  • Added configurable UDP connection timeout with RFC 4787-compliant default
  • Implemented last activity tracking per UDP connection
  • Added timeout checking logic during connection polling to remove stale connections

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
vm/devices/net/net_consomme/consomme/src/udp.rs Adds timeout parameter to Udp struct, tracks last_activity timestamp per connection, and implements timeout checking logic in poll_udp
vm/devices/net/net_consomme/consomme/src/lib.rs Adds udp_timeout field to ConsommeParams with 5-minute default per RFC 4787 and passes timeout to Udp::new()

@github-actions
Copy link

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