-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
respondWrite-Writer is never closed, even if client closes connection #301
Labels
Comments
I did some further investigation and it seems to me that the exception is swallowed by Shouldn't the exception be rethrown here? |
Fixed in kotlinx.coroutines: Kotlin/kotlinx.coroutines@f0c1d99 Will be available once get released |
Thanks a lot for fixing! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I run this application:
and then do a curl and exit at some point:
$ curl "localhost:8080/data" some,entry some,entry some,entry some,entry ^C $
The server outputs:
And
still computing
keeps being printed.I see no way to react to a closed connection. In my real example, I even have an expensive computation running, which I want to abort, as soon as the client closes the connection. By the way: If I change the loop to:
The
still computing
messages stop immediately if I close the connection on the client side.The text was updated successfully, but these errors were encountered: