Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: 5ea00ba8 by lovetox at 2022-08-07T23:07:14+02:00 fix: Set timeout for host-meta http query The default timeout seems to be 60 seconds which is much too long. Fixes #130 - - - - - 1 changed file: - nbxmpp/addresses.py Changes: ===================================== nbxmpp/addresses.py ===================================== @@ -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') View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5ea00ba89882bd13a8488cb948e745b267c0aa88 -- View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5ea00ba89882bd13a8488cb948e745b267c0aa88 You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list Commits@gajim.org https://lists.gajim.org/cgi-bin/listinfo/commits