Browse Source

big file testing

master
dave 2 years ago
parent
commit
64f51bdf7c
  1. 4
      repobot/aptprovider.py
  2. 3
      repobot/server.py

4
repobot/aptprovider.py

@ -313,7 +313,7 @@ Description: Generated by Repobot
yield "package name: {}\n".format(pkgname)
yield "package size: {}\n".format(fsize)
yield "package message:\n-----------------\n{}\n-----------------\n".format(p.message)
yield "package hashes: {}".format(fhashes)
yield "package hashes: {}\n".format(fhashes)
def regen_dist(self, dist_id):
self.queue.put((dist_id, ))
@ -424,7 +424,7 @@ class AptFiles(object):
def stream():
while True:
data = response["Body"].read()
data = response["Body"].read(65535)
if not data:
return
yield data

3
repobot/server.py

@ -71,6 +71,9 @@ def main():
'server.show_tracebacks': True,
'log.screen': False,
'engine.autoreload.on': args.debug,
'server.max_request_body_size': 0,
'server.socket_timeout': 3600,
'response.timeout': 3600
})
def signal_handler(signum, stack):

Loading…
Cancel
Save