make router endpoint timeout configurable

[#56645416]