framework4 icon indicating copy to clipboard operation
framework4 copied to clipboard

ROUTE timeout is not working

Open KangGeunSu opened this issue 5 years ago • 4 comments

my ROUTE total4.js ROUTE("GET /test", handler, [1000], size || 5); handler is Null

Request GET /test -> status 503 (About 10s)

total3.js ROUTE("GET /test", handler, [1000], size || 5); handler is Null

Request GET /test -> status 408 (1s)

total4.js is ROUTE Timeout is Not working...

KangGeunSu avatar Feb 05 '21 07:02 KangGeunSu

Hi @KangGeunSu. I have improved timeouts in Total.js 4. Timeouts are not precise because Total.js has five seconds interval (due to performance) that checks timeouts in all unclosed requests. Therefore you have different times.

petersirka avatar Feb 05 '21 08:02 petersirka

OK, then StatusCode is 503 correct? The timeout seems to be 408.

Thank you

KangGeunSu avatar Feb 05 '21 08:02 KangGeunSu

Yes - it's correct. I have changed it from 408 to 503 because WebKit/Blink performs the request again if the response is 408. So the web server could be overloaded with that behaviour.

petersirka avatar Feb 05 '21 08:02 petersirka

OK! Thank You!

KangGeunSu avatar Feb 05 '21 08:02 KangGeunSu