SMF icon indicating copy to clipboard operation
SMF copied to clipboard

Consider adding timeouts to certain ajax requests

Open live627 opened this issue 2 years ago • 3 comments

from https://stackoverflow.com/a/62470009/4710434

If you haven't configured timeout in your code, It will be the default request timeout of your browser.

1) Firefox - 90 seconds

Type about:config in Firefox URL field. Find the value corresponding to key network.http.connection-timeout

2) Chrome - 300 seconds

Source

With that in mind, we may need to impose a limit on certain requests like quoting to, say, 5 seconds.

live627 avatar Dec 25 '23 23:12 live627

I'm very sure that smf didn't use fetch? so the implicit question would be, do we change smf to fetch?

albertlast avatar Dec 27 '23 21:12 albertlast

Both 90 and 300 seem extremely excessive for a timeout. I'm not so sure about 5 either. Seems like a long time but I am not a JS guru.

tyrsson avatar Dec 28 '23 03:12 tyrsson

Makes sense to me.

Sesquipedalian avatar Dec 28 '23 04:12 Sesquipedalian