diff options
author | Erik Johnston <erik@matrix.org> | 2015-01-30 16:11:14 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-01-30 16:11:14 +0000 |
commit | 7d897f5bfc4bbb65aa9ab4fb8e601511633baf2c (patch) | |
tree | ccb776c4531d442f5c8c7629528d6e085bb45464 /synapse/crypto/keyclient.py | |
parent | Allow any greater version for webclient (diff) | |
parent | Briefly doc structure of query_auth API. (diff) | |
download | synapse-7d897f5bfc4bbb65aa9ab4fb8e601511633baf2c.tar.xz |
Merge pull request #43 from matrix-org/rejections
Rejections
Diffstat (limited to 'synapse/crypto/keyclient.py')
-rw-r--r-- | synapse/crypto/keyclient.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/crypto/keyclient.py b/synapse/crypto/keyclient.py index 9c910fa3fc..cdb6279764 100644 --- a/synapse/crypto/keyclient.py +++ b/synapse/crypto/keyclient.py @@ -61,9 +61,11 @@ class SynapseKeyClientProtocol(HTTPClient): def __init__(self): self.remote_key = defer.Deferred() + self.host = None def connectionMade(self): - logger.debug("Connected to %s", self.transport.getHost()) + self.host = self.transport.getHost() + logger.debug("Connected to %s", self.host) self.sendCommand(b"GET", b"/_matrix/key/v1/") self.endHeaders() self.timer = reactor.callLater( @@ -92,8 +94,7 @@ class SynapseKeyClientProtocol(HTTPClient): self.timer.cancel() def on_timeout(self): - logger.debug("Timeout waiting for response from %s", - self.transport.getHost()) + logger.debug("Timeout waiting for response from %s", self.host) self.remote_key.errback(IOError("Timeout waiting for response")) self.transport.abortConnection() |