Skip to content

Flow still alive after one-sided connection close by client #476

@slainless

Description

@slainless

Describe the bug
So the flow the server is collecting is still alive even after client disconnect.
Is this by design? Does that mean I have to add timeout to every flow consumer in case the client hangs up?

To Reproduce
Steps to reproduce the behavior:

  1. Kotlin version: 2.2.0
  2. Gradle version: 8.9
  3. OS (Or at least KMP platform): JVM
  4. KRPC: 0.9.1

Expected behavior
Shouldn't the flow throw with cancellation when client disconnect?

Additional context
I'm using flow to stream ByteArray to remote server.

I don't know if this is relevant but I'm using ktor client + okhttp and ktor server + netty, and waitForServices: true

EDIT:
Perhaps related to #446?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions