Eh I noticed that ktor's &lt;<https://api.ktor.io/...
# ktor
p
Eh I noticed that ktor's <https://api.ktor.io/ktor-client/ktor-client-core/io.ktor.client.plugins/on-download.html> callback last invocation sends me 1 byte less than the previous invocation. effectively a negative diff ? Is this an issue or normal ?
here's 3 lines of log output, first 2 values are the bytesSentTotal and contentLength of the ProgressListener interface
a
Can you share your code?
p
Copy code
val resp = httpClient.get(url) {
                val domain = Url(link).host
                header("Cookie", secret)
                onDownload { bytesSentTotal: Long, contentLength: Long ->
                    println("$bytesSentTotal $contentLength")
                }
            }.bodyAsText()
Copy code
572592424 572595053
572595053 572595053
572595052 572595053
tbf it doesn't happen on everything, I have this issue on certain videos, I'll try to see if I can reproduce it myself