fix #18692 AsyncHttpServer was hanging because client.close was not called (#18693)

This commit is contained in:
Timothee Cour 2021-08-14 02:13:30 -07:00 • committed by GitHub
commit 52cc0a82ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,9 @@ proc processClient(server: AsyncHttpServer, client: AsyncSocket, address: string
let retry = await processRequest(
server, request, client, address, lineFut, callback
)
if not retry: break
if not retry:
client.close()
break
const
nimMaxDescriptorsFallback* {.intdefine.} = 16_000 ## fallback value for \