https://kotlinlang.org logo
#ktor
Title
# ktor
n

napperley

10/27/2020, 3:34 AM
Keep on getting a segmentation fault when creating an instance of
HttpClient
using this project: https://gitlab.com/napperley/openfaas-weather-sample
Very disappointing that the quality of the Ktor Client library for the linuxX64 target has gone downhill. The Ktor team need to get on top of memory issues (segmentation faults, memory leaks etc). With the way things are going Ktor Client isn't usable for experimentation.
1
May I suggest that Ktor Client uses plain KotlinX Coroutines, instead of the multi threaded version. After all Ktor Client works fine in a single threaded environment like JS for example.
c

cy

10/28/2020, 5:06 PM
cc @e5l
@napperley is it Curl engine?
👌 1
n

napperley

10/28/2020, 9:34 PM
Is there more than one engine available now for the linuxX64 version?
e

e5l

10/29/2020, 11:47 AM
Yep, you can use
CIO
and
Curl