4 ms·
“I instead put in a hacky solution because I’m not a programmer and didn’t understand the solution or why it might be better”
by wordofx 1y ago
“I instead put in a hacky solution because I’m not a programmer and didn’t understand the solution or why it might be better”
- whatever1 1y agoExplain 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.