Working right now to add graceful connection shutdown to libcurl. The hardest part in communication is to end one with both sides being happy. Not a joke.
When a heavy libcurl application uses many short connections, it might run out of local ports. Because TCP and TLS.
First infrastructure and use for FTP+SSL data connection is here:
https://github.com/curl/curl/pull/13904