Skip to content

Call GetExtended[Tcp|Udp]Table twice under free-threaded build #2590

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lysnikolaou
Copy link
Contributor

Summary

  • OS: Windows
  • Bug fix: yes
  • Type: core

Description

To avoid using global state for the size of the allocated tcp/udp table, we fall back to the slower path of calling the GetExtended[Tcp|Udp]Table APIs twice, once to get the size of the table we need to allocate, and once to actually populate the table. Related to #2565.

To avoid using global state for the size of the allocated tcp/udp
table, we fall back to the slower path of calling the
`GetExtended[Tcp|Udp]Table` APIs twice, once to get the size of the
table we need to allocate, and once to actually populate the
table.

Signed-off-by: Lysandros Nikolaou <[email protected]>
@lysnikolaou lysnikolaou force-pushed the g_tcptablesize-global-state branch from d8bf3d4 to 94a84d0 Compare June 24, 2025 17:10
@lysnikolaou
Copy link
Contributor Author

Friendly ping for a review here as well if you ever find some time.

@lysnikolaou
Copy link
Contributor Author

@giampaolo Sorry for the repetitive pings, but getting this over the finish-line would make testing a bit easier for me, whenever you get some time.

@lysnikolaou
Copy link
Contributor Author

@giampaolo Is there anything I can do to help push this forward?

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