specify the handler

This commit is contained in:
Mark McIntyre 2019-05-02 12:48:09 -04:00
parent 044be922d8
commit cc5eecb234

View File

@ -80,7 +80,7 @@ if __name__ == "__main__":
log.info("Creating 1 gigabyte file...")
create_file()
simple_handler = http.server.SimpleHTTPRequestHandler
simple_handler = SimpleHandler() # http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer((args.ip_address, args.port), SockHandler) as tcpd:
log.info(f"Server started on {args.ip_address}:{args.port}")