Join Slack
Is there some smart way to check, if there are no leaks while using ktor-io ByteReadPackets?
# ktor
o
Oleg Yukhnevich
10/11/2020, 11:44 AM
Is there some smart way to check, if there are no leaks while using ktor-io ByteReadPackets?
Oleg Yukhnevich
10/12/2020, 10:54 AM
@e5l
may be you will help here, as seems you are the most familiar with
ktor-io/kotlinx-io
I want to check, that all created packets/buffers are released in the end of test I have created own pool implementation, which delegates to default pool and track borrow/recycle calls:
https://github.com/rsocket/rsocket-kotlin/blob/task/leak-detection/rsocket-test/src/commonMain/kotlin/io/rsocket/kotlin/test/InUseTrackingPool.kt
But it will work, only if all buffers will be from that Pool May be exists some other way, or any other advice?
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by