From 5757347994f0db85da13c48512deff5ac7ad494c Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Fri, 25 Mar 2022 11:46:08 -0400 Subject: [PATCH] http_client: use the simple client While the curl based client is better in most respects, it requires that libcurl be against with an asynchronous DNS resolver, such as c-ares, in order to prevent blocking. As of now it Debian does not ship with a version of curl with ares enabled. Fall back to the simple client until this can be resolved. Signed-off-by: Eric Callahan --- moonraker/components/http_client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/moonraker/components/http_client.py b/moonraker/components/http_client.py index b3881ec..d06c515 100644 --- a/moonraker/components/http_client.py +++ b/moonraker/components/http_client.py @@ -32,10 +32,7 @@ if TYPE_CHECKING: from io import BufferedWriter StrOrPath = Union[str, pathlib.Path] -# Configure the http client to use the pycurl based implementation -AsyncHTTPClient.configure( - "tornado.curl_httpclient.CurlAsyncHTTPClient", - defaults=dict(user_agent="Moonraker")) +AsyncHTTPClient.configure(None, defaults=dict(user_agent="Moonraker")) GITHUB_PREFIX = "https://api.github.com/"