Add request container lifecycle handling

This commit is contained in:
2022-03-30 23:04:00 -05:00
parent 514a578260
commit 78cb26fcb2
8 changed files with 103 additions and 16 deletions

View File

@@ -131,6 +131,9 @@ export class HTTPServer extends Unit {
if ( extolloReq.response.canSend() ) {
await extolloReq.response.send()
}
}).finally(() => {
this.logging.verbose('Destroying request container...')
extolloReq.destroy()
})
}
}