One of the issues that was encountered a long time ago is the Ktor Client library (targeting
linuxX64) leaking memory every time a request (using a text payload) is made. I'm not sure if that issue has been fixed. Back when the library was being evaluated the decision was made to use the
libcurl library (
https://curl.se/libcurl/ ) instead which doesn't have this issue.
After the switch was made a discovery was found with libcurl where less reserved memory was used if multiple connections were utilized instead of reusing a single connection. Since the native version of Ktor Client is based on libcurl does it reuse a single connection, or are multiple connections utilized instead?