Skip to content

Commit

Permalink
Tell the delegate we stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Nov 3, 2023
1 parent 7658ec6 commit 975e33c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Vapor/Concurrency/RequestBody+Concurrency.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ extension Request.Body: AsyncSequence {
// The consumer dropped the sequence.
// Inform the producer that we don't want more data
// by returning an error in the future.
delegate.didTerminate()
return request.eventLoop.makeFailedFuture(CancellationError())
case .stopProducing:
// The consumer is too slow.
Expand Down

0 comments on commit 975e33c

Please sign in to comment.