I'm using warp for a web server. It's working nicely so far.
Now, I'm thinking about implementing HTTP long polling in warp. It seems fine to put some sort of async delays in the async handler function, to delay the response until some data is available. So I think that should be fine.
But I'm wondering, how can the handler function detect if/when the client closes the connection?