This product is not supported for your selected Datadog site. ().
Cette page n'est pas encore disponible en français, sa traduction est en cours. Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.
Access to remote resources should always use a timeout and appropriately handle the timeout and recovery. When using requests.get, requests.put, requests.patch, etc. - we should always use a timeout as an argument.
fromrequestsimportget,putr=get(w,verify=False)# missing a timeoutr=get(w,verify=False,timeout=10)defbla():r=get(w,verify=False)
importrequestsr=requests.put(w,verify=False)# missing a timeout
importrequestsr=requests.get(w,verify=False)# missing a timeoutr=requests.get(w,verify=False,timeout=10)deffoo():r=requests.get(w,verify=False)# missing a timeoutifbar:r=requests.get(w,verify=False)