We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94d9617 commit e2377b5Copy full SHA for e2377b5
synapse/http/client.py
@@ -1034,7 +1034,7 @@ def dataReceived(self, data: bytes) -> None:
1034
# The first time the maximum size is exceeded, error and cancel the
1035
# connection. dataReceived might be called again if data was received
1036
# in the meantime.
1037
- if self.max_size is not None and self.length >= self.max_size:
+ if self.max_size is not None and self.length > self.max_size:
1038
self.deferred.errback(BodyExceededMaxSize())
1039
# Close the connection (forcefully) since all the data will get
1040
# discarded anyway.
0 commit comments