-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix heap growth in Host.swift #1320
Fix heap growth in Host.swift #1320
Conversation
This commit ensures that the `resolve` functionality only calculates addresses and names once, as appears to be originally intended. Furthermore, this mitigates a bug where addresses would be endlessly appended to the `addresses` array, causing long term unbounded heap growth.
@swift-ci please test |
@swizzlr PRs merged into |
@spevans Shall I open one against 4.0? I don't know if a new patch release is scheduled, but it seems like a small enough change to warrant inclusion. |
Can we add a test too? |
@ianpartridge Sure. |
@swift-ci please test |
@ianpartridge added some tests, and realized the bug wasn't fixed for remote hosts, so fixed that too. Let me know if you want me to squash. |
@swift-ci please test |
@swift-ci please test and merge |
1 similar comment
@swift-ci please test and merge |
This commit ensures that the
resolve
functionality only calculatesaddresses and names once, as appears to be originally intended.
Furthermore, this mitigates a bug where addresses would be endlessly
appended to the
addresses
array, causing long term unbounded heapgrowth.
--
Am I correct in thinking this needs to go to master, then cherry-picked into 4.1 and 4.0? I couldn't find any docs in the contributing guidelines about branch structure.