Browse Source

big file testing

master
dave 1 year ago
parent
commit
64f51bdf7c
2 changed files with 5 additions and 2 deletions
  1. +2
    -2
      repobot/aptprovider.py
  2. +3
    -0
      repobot/server.py

+ 2
- 2
repobot/aptprovider.py View File

@@ -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
- 0
repobot/server.py View File

@@ -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