Commit 5ea00ba8 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

fix: Set timeout for host-meta http query

The default timeout seems to be 60 seconds which is much too long.

Fixes #130
parent ee0c8772
Pipeline #10604 passed with stages
in 47 seconds
......@@ -137,6 +137,7 @@ class ServerAddresses(Observable):
def _resolve_alternatives(self) -> None:
session = Soup.Session()
session.props.timeout = 5
session.props.user_agent = f'nbxmpp/{nbxmpp.__version__}'
message = Soup.Message.new(
'GET', f'https://{self._domain}/.well-known/host-meta')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment