1 --- woof-2009-12-27.py 2011-03-31 20:29:40.000000000 +0200
2 +++ woof-2009-12-27.py 2011-03-31 21:28:32.355233473 +0200
15 - global maxdownloads, cpid, compressed, upload
16 + global maxdownloads, compressed, upload
18 # Form for uploading a file
21 # let a separate process handle the actual download, so that
22 # multiple downloads can happen simultaneously.
32 if os.path.isfile (self.filename):
35 print("Now serving on http://%s:%s/" % (ip_addr, httpd.server_port))
37 - while cpid != 0 and maxdownloads > 0:
38 + while maxdownloads > 0:
39 httpd.handle_request ()
46 - global cpid, upload, compressed
47 + global upload, compressed
53 serve_files (filename, maxdown, ip_addr, port)
55 - # wait for child processes to terminate
65 if __name__=='__main__':