class FileUploaderStream(stream.FileStream):
- CHUNK_SIZE = 16*1024
+ CHUNK_SIZE = 4*1024
def read(self, sendfile=False):
if self.f is None:
# serverFilter.buckets[None] = serverBucket
#
# self.factory.protocol = htb.ShapedProtocolFactory(self.factory.protocol, serverFilter)
- self.factory = ThrottlingFactory(self.factory, writeLimit = 3*1024)
+ self.factory = ThrottlingFactory(self.factory, writeLimit = 30*1024)
return self.factory
def render(self, ctx):
class DB:
def lookupHash(self, hash):
- return [{'path': FilePath(os.path.expanduser('~/.xsession-errors'))}]
+ return [{'path': FilePath(os.path.expanduser('~/school/optout'))}]
t = TopLevel(FilePath(os.path.expanduser('~')), DB(), None)
factory = t.getHTTPFactory()