No, no 502s, but it's still too slow. I'm getting a lot of these isn nginx's error-log. I'm afraid I can't really use the microtime function as these aren't my scripts. This problem only seems to affect POST functions though I've noticed. upstream timed out (110: Connection timed out) while reading response header from upstream