Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Allow connect-only connections to be closed when unused #5749
As mentioned in #4426 (comment), commit 1d5c427 fixes issue 4426 but introduces another issue where connect-only connections completed in a multi handle would be kept alive for the entire lifetime of that multi handle. This patch disassociates these connections from their easy handle when that easy handle is removed from the multi, allowing them to be cleaned up normally.
Previously any connect-only connections in a multi handle would be kept alive until the multi handle was closed. Since these connections cannot be re-used, they can be marked for closure when the associated easy handle is removed from the multi handle.