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 <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-03-25 11:46:08 -04:00
parent 81a482f83d
commit 5757347994
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 1 additions and 4 deletions

View File

@ -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/"