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.
1 parent 4c6737a commit 82f09efCopy full SHA for 82f09ef
1 file changed
Sources/NIOHTTPServer/NIOHTTPServer+HTTP1_1.swift
@@ -95,7 +95,7 @@ extension NIOHTTPServer {
95
try await channel.executeThenClose { inbound, outbound in
96
var iterator = inbound.makeAsyncIterator()
97
98
- requestLoop: while true {
+ requestLoop: while !Task.isCancelled {
99
guard let httpRequest = try await self.nextRequestHead(from: &iterator) else {
100
break requestLoop
101
}
0 commit comments