koa
koa copied to clipboard
Client disconnect
Suppose a route takes 60 seconds to respond. Client disconnects for some reason at second 25. Will Koa continue running middles or it will terminate context? I ask this to know how to handle some slow routes.
I guess koa will continue the request and stop when it responds and hits the writable check: in respond and then reach response.writable.