Stop Hardcoding Your Timeouts

(alfy.blog)

2 points | by birdculture 8 hours ago ago

1 comments

  • onion2k 8 hours ago ago

    The idea of a timeout is that you're being a good internet citizen, and not just battering on the server until it gives you what you want. You respect the other party in the transaction, and if it's taking too long you stop holding the connection and wait until it can be done at a less busy time, or try something else entirely if the issue is on your end.

    Timeouts that you just increase until something works are pointless. You'll just end up increasing the probability of overloading the server and risk more things going wrong.