Add a tunable for the default timeout.

(cherry picked from commit 65c945d5837493805e85471f2482c74e902d3cc2)