I’ve noticed that sometimes (reasonably often) whi...
# ktor
a
I’ve noticed that sometimes (reasonably often) while using Ktor client with the Logging plugin installed on iOS in a KMM project some kind of deadlock occurs after
log("BODY START")
in the below function.
Copy code
private suspend fun logResponseBody(contentType: ContentType?, content: ByteReadChannel): Unit = with(logger) {
     log("BODY Content-Type: $contentType")
     log("BODY START")
     val message = content.tryReadText(contentType?.charset() ?: Charsets.UTF_8) ?: "[response body omitted]"
     log(message)
     log("BODY END")
}
Does anyone else have a similar experience, or any pointer how to avoid this (other than not installing the Logging plugin)?
a
Could you please file an issue with a complete sample code attached?
a