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:
parent
81a482f83d
commit
5757347994
|
@ -32,10 +32,7 @@ if TYPE_CHECKING:
|
||||||
from io import BufferedWriter
|
from io import BufferedWriter
|
||||||
StrOrPath = Union[str, pathlib.Path]
|
StrOrPath = Union[str, pathlib.Path]
|
||||||
|
|
||||||
# Configure the http client to use the pycurl based implementation
|
AsyncHTTPClient.configure(None, defaults=dict(user_agent="Moonraker"))
|
||||||
AsyncHTTPClient.configure(
|
|
||||||
"tornado.curl_httpclient.CurlAsyncHTTPClient",
|
|
||||||
defaults=dict(user_agent="Moonraker"))
|
|
||||||
|
|
||||||
GITHUB_PREFIX = "https://api.github.com/"
|
GITHUB_PREFIX = "https://api.github.com/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue