Show More
@@ -74,6 +74,9 b' class webproto(wireproto.abstractserverp' | |||||
74 | self.ui.ferr, self.ui.fout = self.oldio |
|
74 | self.ui.ferr, self.ui.fout = self.oldio | |
75 | return val |
|
75 | return val | |
76 | def groupchunks(self, cg): |
|
76 | def groupchunks(self, cg): | |
|
77 | # Don't allow untrusted settings because disabling compression or | |||
|
78 | # setting a very high compression level could lead to flooding | |||
|
79 | # the server's network or CPU. | |||
77 | z = zlib.compressobj(self.ui.configint('server', 'zliblevel', -1)) |
|
80 | z = zlib.compressobj(self.ui.configint('server', 'zliblevel', -1)) | |
78 | while True: |
|
81 | while True: | |
79 | chunk = cg.read(4096) |
|
82 | chunk = cg.read(4096) |
General Comments 0
You need to be logged in to leave comments.
Login now