Skip to content

Commit

Permalink
Avoid hanging on takeHeaders (incorrect 103 handling) when response b…
Browse files Browse the repository at this point in the history
…ody is empty.
  • Loading branch information
yschimke committed Jul 22, 2023
1 parent 713b9f3 commit 15ebeee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ class Http2Stream internal constructor(
if (this.errorCode != null) {
return false
}
if (source.finished && sink.finished) {
return false
}
this.errorCode = errorCode
this.errorException = errorException
notifyAll()
if (source.finished && sink.finished) {
return false
}
}
connection.removeStream(id)
return true
Expand Down

0 comments on commit 15ebeee

Please sign in to comment.