config: made periodic_timeout configurable and decreased its default to 15.