Skip to content

Commit c8a753c

Browse files
committed
Update comment
1 parent b56ffaf commit c8a753c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Sources/HummingbirdHTTP2/HTTP2StreamChannel.swift

+3-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ struct HTTP2StreamChannel: ServerChildChannel {
7777
)
7878
let responseWriter = ResponseWriter(outbound: outbound)
7979
try await self.responder(request, responseWriter, asyncChannel.channel)
80-
// Temporary fix: wait until the client ends inbound stream. When inbound ends
81-
// we can assume that the response has been fully written. Ideally this
82-
// shouldnt be necessary as calling write should guarantee data is written
83-
// TODO: Remove this once SwiftNIO code is working
80+
// Wait until inbound stream is finished. NIO will end the stream once
81+
// it receives the HTTP part `.end`. This shouldnt be necessary as calling
82+
// write should guarantee data is written
8483
while try await iterator.next() != nil {}
8584
}
8685
} onCancel: {

0 commit comments

Comments
 (0)