Skip to content

Commit

Permalink
fixup! KTOR-7461 Fix for OutputStream response writing full contents …
Browse files Browse the repository at this point in the history
…to memory
  • Loading branch information
bjhham committed Sep 20, 2024
1 parent c03a36c commit b286eee
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ abstract class ContentTestSuite<TEngine : ApplicationEngine, TConfiguration : Ap
handle {
call.respondOutputStream {
var count = 0
while(!readingStarted) {
while (!readingStarted) {
write(++count)
assertFalse(count > 10_000_000)
}
Expand All @@ -820,11 +820,10 @@ abstract class ContentTestSuite<TEngine : ApplicationEngine, TConfiguration : Ap
assertEquals((count++).toByte(), byte.toByte())
byte = input.read()
readingStarted = true
} while(byte >= 0)
} while (byte >= 0)
}
}


companion object {
const val classesDir: String = "build/classes/"
}
Expand Down

0 comments on commit b286eee

Please sign in to comment.