Baeldung / kotlin-tutorials

Supporting code for the tutorials on https://www.baeldung.com/kotlin
https://www.baeldung.com/kotlin
MIT License
471 stars 296 forks source link

Blocking call in non-blocking context #1035

Open qstpss opened 4 months ago

qstpss commented 4 months ago

Hello, I see such warning Possibly blocking call in non-blocking context could lead to thread starvation on that line: https://github.com/Baeldung/kotlin-tutorials/blob/4abc9fb834397d277d0bb9281cfd02ab8ae21399/spring-reactive-kotlin/src/main/kotlin/com/baeldung/logfilter/decorator/LoggingResponseDecorator.kt#L21

Every example on the internet contains such a logic. I wonder is it ok?

apeterlic commented 3 months ago

Hey @qstpss,

Thanks for the feedback; we'll look into this. This issue will remain open until then. Link to the article: https://www.baeldung.com/kotlin/spring-webflux-log-request-response-body