add timeout option to check_http