(port)
| 23 | httpd.serve_forever() |
| 24 | |
| 25 | def start(port): |
| 26 | thread = Thread(target=startServer, args=[port]) |
| 27 | thread.start() |
| 28 | |
| 29 | startTime = int(time.time()) |
| 30 | while not httpd: |
| 31 | if int(time.time()) > startTime + 60: |
| 32 | print("Time out") |
| 33 | break |
| 34 | return httpd |
| 35 | |
| 36 | def stop(): |
| 37 | if httpd: |