Skip to content

Fix connection leak on early SIGINT in multiqueue#9

Draft
shivanayak wants to merge 1 commit intoredhat-openstack:masterfrom
shivanayak:fix/multiqueue-signal-handler-connection-leak
Draft

Fix connection leak on early SIGINT in multiqueue#9
shivanayak wants to merge 1 commit intoredhat-openstack:masterfrom
shivanayak:fix/multiqueue-signal-handler-connection-leak

Conversation

@shivanayak
Copy link

Summary

  • Initialize my_ports = [] before registering the signal handler in gen_stl() to prevent a NameError that would skip c.disconnect() and leak the TRex client connection when SIGINT arrives before port assignment.

Test plan

  • Send SIGINT to multiqueue.py --action gen_traffic immediately after launch and verify TRex client disconnects cleanly
  • Run normal gen_traffic flow end-to-end to confirm no regression

Co-Authored-By: Claude noreply@anthropic.com

Initialize my_ports to [] before registering the signal handler in
gen_stl() to prevent a NameError that would skip c.disconnect().

Co-Authored-By: Claude noreply@anthropic.com
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