symphonycms/jit_image_manipulation — pull request #85 by nitriques (2014-04-02 15:35:10+00:00)
Title: Aborted connections

This was bugging me for a long time and I have a website where this fix is absolutely crucial.

We use jit image in a way that would flood most server: We load tons of images at the same time, and most of them are canceled by the browser but php would still try do all the work, even though it does not need to.

So the fix is pretty simple, it checks regularly if the connection is open. If not, it will simply die.

I tested it a lot and it works really great. Instead of flooding the server and taking all the available RAM, the process just quits as soon as the connection is dropped.