Skip to content

Commit

Permalink
Fix request stream close on stream pause (#36)
Browse files Browse the repository at this point in the history
Resolves #31
  • Loading branch information
buildbreaker authored Apr 12, 2023
1 parent 85436d7 commit 5da30f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,9 @@ internal class PipeDuplexRequestBody(
bufferedSink.writeAll(buffer)
bufferedSink.flush()
}
} finally {
} catch (e: Throwable) {
close()
throw e
}
}

Expand Down

0 comments on commit 5da30f1

Please sign in to comment.