##// END OF EJS Templates
configitems: register the 'server.zliblevel' config
marmoute -
r33225:35c23397 default
parent child Browse files
Show More
@@ -140,6 +140,9 b" coreconfigitem('server', 'uncompressedal"
140 coreconfigitem('server', 'validate',
140 coreconfigitem('server', 'validate',
141 default=False,
141 default=False,
142 )
142 )
143 coreconfigitem('server', 'zliblevel',
144 default=-1,
145 )
143 coreconfigitem('ui', 'clonebundleprefers',
146 coreconfigitem('ui', 'clonebundleprefers',
144 default=list,
147 default=list,
145 )
148 )
@@ -135,7 +135,7 b' class webproto(wireproto.abstractserverp'
135 # Don't allow untrusted settings because disabling compression or
135 # Don't allow untrusted settings because disabling compression or
136 # setting a very high compression level could lead to flooding
136 # setting a very high compression level could lead to flooding
137 # the server's network or CPU.
137 # the server's network or CPU.
138 opts = {'level': self.ui.configint('server', 'zliblevel', -1)}
138 opts = {'level': self.ui.configint('server', 'zliblevel')}
139 return HGTYPE, util.compengines['zlib'], opts
139 return HGTYPE, util.compengines['zlib'], opts
140
140
141 def iscmd(cmd):
141 def iscmd(cmd):
General Comments 0
You need to be logged in to leave comments. Login now