Skip to content

Commit

Permalink
fix QUIC implementation (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg authored Nov 30, 2024
1 parent b7f27ba commit 66873a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ import kotlin.time.Duration.Companion.minutes
import kotlin.time.Duration.Companion.seconds

val TestExceptionHandler = CoroutineExceptionHandler { c, e ->
println("Error in $c -> ${e.stackTraceToString()}")
val message = buildString {
appendLine("TestExceptionHandler:")
appendLine(" context: $c")
appendLine(" cause: $e")
appendLine(" stackTrace:")
e.stackTraceToString().lines().forEach { appendLine(" $it") }
}
println(message)
}

interface SuspendTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ internal class NettyQuicStreamHandler(
state.inbound.cancel()
withContext(NonCancellable) {
writerJob.join()
// TODO: what is the correct way to properly shutdown stream?
channel.shutdownInput().awaitFuture()
channel.close().awaitFuture()
}
}
Expand Down

0 comments on commit 66873a3

Please sign in to comment.