Hello everyone, I am working in an application where users can download some PDFs. The hard part is that when a PDF downloading finishes, I want the application to be notified. So, I know which users have received their documents and which don't.
As HTTP is a stateless protocol, there's no mechanism to tell the server that the download has finished. There's no ACK in HTTP :( I am focusing two scenarios: A) The user cancels the download. Great, the browser closes the connection and the server kills my CGI. Great! The app is notofied when the user cancels the download. B) Network failure. The socket between the server and the client closes but the CGI keeps alive. The app is not notified that the client is down! So, the question is: how would you handle this second scenario? Is there any way to get Cherokee kill its child CGI processes when the client conmnection is reset? Thanks for your time, David _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
