resgateio/resgate

Inconsistent timeout units

Closed this issue · 0 comments

Issue

Milliseconds is the timeout unit specified in the RES-service pre-response.

Seconds are used as the requestTimeout unit in Resgate config.

Solution

Change config requestTimeout units to milliseconds.

To ensure acceptable backwards compatibility, if the default timeout setting is >= 10, seconds will be assumed, and a deprecated warning message will show in the log.

Also, the default requestTimeout should be lowered to 3000 ms.