We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f923de + 5e11583 commit d5ac556Copy full SHA for d5ac556
Sources/OpenAPIVapor/VaporTransport.swift
@@ -147,11 +147,17 @@ extension Vapor.Response.Body {
147
_ = writer.eventLoop.makeFutureWithTask {
148
do {
149
for try await chunk in body {
150
- try await writer.write(.buffer(ByteBuffer(bytes: chunk))).get()
+ try await writer.eventLoop.flatSubmit {
151
+ writer.write(.buffer(ByteBuffer(bytes: chunk)))
152
+ }.get()
153
}
- try await writer.write(.end).get()
154
155
+ writer.write(.end)
156
157
} catch {
- try await writer.write(.error(error)).get()
158
159
+ writer.write(.error(error))
160
161
162
163
0 commit comments