mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-02 11:26:05 -04:00
Merge remote-tracking branch 'upstream/release-v1.35'
This commit is contained in:
commit
4740b83c39
98 changed files with 6440 additions and 2105 deletions
|
@ -814,7 +814,12 @@ class _ReadBodyWithMaxSizeProtocol(protocol.Protocol):
|
|||
if self.deferred.called:
|
||||
return
|
||||
|
||||
self.stream.write(data)
|
||||
try:
|
||||
self.stream.write(data)
|
||||
except Exception:
|
||||
self.deferred.errback()
|
||||
return
|
||||
|
||||
self.length += len(data)
|
||||
# The first time the maximum size is exceeded, error and cancel the
|
||||
# connection. dataReceived might be called again if data was received
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue