Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit fbb758a

Browse files
committed
Fixup comments
1 parent e70f008 commit fbb758a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

synapse/http/federation/matrix_federation_agent.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,19 @@ def endpointForURI(self, parsed_uri):
192192
class MatrixHostnameEndpoint(object):
193193
"""An endpoint that resolves matrix:// URLs using Matrix server name
194194
resolution (i.e. via SRV). Does not check for well-known delegation.
195+
196+
Args:
197+
reactor (IReactor)
198+
tls_client_options_factory (ClientTLSOptionsFactory|None):
199+
factory to use for fetching client tls options, or none to disable TLS.
200+
srv_resolver (SrvResolver): The SRV resolver to use
201+
parsed_uri (twisted.web.client.URI): The parsed URI that we're wanting
202+
to connect to.
195203
"""
196204

197205
def __init__(self, reactor, tls_client_options_factory, srv_resolver, parsed_uri):
198206
self._reactor = reactor
199207

200-
# We reparse the URI so that defaultPort is -1 rather than 80
201208
self._parsed_uri = parsed_uri
202209

203210
# set up the TLS connection params
@@ -272,6 +279,7 @@ def _resolve_server(self):
272279
# before now, due to needing to rewrite the Host header of the HTTP
273280
# request.
274281

282+
# We reparse the URI so that defaultPort is -1 rather than 80
275283
parsed_uri = urllib.parse.urlparse(self._parsed_uri.toBytes())
276284

277285
host = parsed_uri.hostname

0 commit comments

Comments
 (0)