5 ms·
Explain to us non-programmers why a 60" request (the default nginx timeout) is ok, but a 61" request is not.
by whatever1 1y ago
Explain to us non-programmers why a 60" request (the default nginx timeout) is ok, but a 61" request is not.
- wordofx 1y agolol it’s funny you have to ask. Out of curiosity I asked Claude. “I have an application, it only has a few users, hosted on nginx. There is 1 endpoint which can take up to 5 minutes to execute. What’s the best way to fix this?” Response: “Immediate fix… Increase nginx timeout settings explains how” I happen to have a php project here hosted on nginx with docker locally for running and testing. So I asked cursor the exact same question. It suggested refactoring to make the call async, or changing nginx. I said change nginx. It updated the config and rebuilt docker compose to make sure the change happened. It’s always a user issue when it comes to using AI.