Fix "timeout" option is deprecated issue.