php - Prevent apache web server from processing stopped ( by browser ) request -
recently wrote importing script in php, import mass info remote server.
from browser initiate import operation , works good. time remote server took time respond stopped request using browser's "stop" button .
but seems apache still processing request.
so there way stop apache process when corresponding request stopped.?
i don't think possible. when press stop in browser stop listening for/processing responses server. if server busy processing before sends response, pressing stop doesn't send server more information, go on process until finishes, effort reply.
remember http stateless. create request, wait response, that's there it. in behaviour want, you'd need create request same process while response beingness processed/served, doesn't follow pattern.
the way think accomplish implementing method take parameters used locate , kill long-running process. would, of course, new, separate request.
php apache browser httprequest
No comments:
Post a Comment