mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 17:16:08 -04:00
Make retrying requests on DNS failures configurable, and turn off retrying only in directory.get_association
This commit is contained in:
parent
c06d07a276
commit
7fc84c7019
3 changed files with 29 additions and 8 deletions
|
@ -21,6 +21,7 @@ from mock import Mock
|
|||
import logging
|
||||
|
||||
from synapse.server import HomeServer
|
||||
from synapse.http.client import HttpClient
|
||||
from synapse.handlers.directory import DirectoryHandler
|
||||
from synapse.storage.directory import RoomAliasMapping
|
||||
|
||||
|
@ -92,7 +93,10 @@ class DirectoryTestCase(unittest.TestCase):
|
|||
self.mock_federation.make_query.assert_called_with(
|
||||
destination="remote",
|
||||
query_type="directory",
|
||||
args={"room_alias": "#another:remote"}
|
||||
args={
|
||||
"room_alias": "#another:remote",
|
||||
HttpClient.RETRY_DNS_LOOKUP_FAILURES: False
|
||||
}
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue