summary refs log tree commit diff
path: root/synapse/replication/tcp
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2022-11-17 16:09:56 +0000
committerGitHub <noreply@github.com>2022-11-17 16:09:56 +0000
commite7132c3f81acbc50c1923cad7eeab96d3b2e05fd (patch)
tree74ad65f3da728bbf260f041da6681060c0f8dd31 /synapse/replication/tcp
parentFaster joins: do not wait for full state when creating events to send (#14403) (diff)
downloadsynapse-e7132c3f81acbc50c1923cad7eeab96d3b2e05fd.tar.xz
Fix check to ignore blank lines in incoming TCP replication (#14449)
Diffstat (limited to 'synapse/replication/tcp')
-rw-r--r--synapse/replication/tcp/protocol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py
index 7763ffb2d0..56a5c21910 100644
--- a/synapse/replication/tcp/protocol.py
+++ b/synapse/replication/tcp/protocol.py
@@ -245,7 +245,7 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver):
             self._parse_and_dispatch_line(line)
 
     def _parse_and_dispatch_line(self, line: bytes) -> None:
-        if line.strip() == "":
+        if line.strip() == b"":
             # Ignore blank lines
             return