[Kotlin/Native] Slow connection issues
i'm experiencing noticeable connection issues with Kord (branch
feature/native
on Linux). about 90% of interactions fail, i can't even defer them to respond later. so far i couldn't upload files too, and it takes 10 seconds for a message to be sent (and retrieved afterwards). what's strange is that it always takes 10 seconds. here's the code for the last part:
no such issues occur when i run on JVM. could this be related to Ktor, or maybe the curl engine itself?20 Replies
Kord won't let me use the
CIO
engine either: TLS sessions are not supported on Native platform.
well its a ktor thing not kord
send trace logs
though the first 2-3 requests were fine
i dont even know whats going on anymore
you can try manually instrumenting the http client to rule out rate limiter problems
but it’s most likely a curl problem
how would i do that?
custom plugin
or i think Http call logging is an official one
is mine
would need to remove the engine name thingy
did i just need to install it as a plugin? if so, here are the logs:
yeah curl moment
yeah this is happening to me as well
lmao
it's weird though, some requests go through instantly like that 'Connected to message'
hmm
i'll go ahead and test ktor itself