API call timeout infrastructure