(port, timeout)
| 19 | |
| 20 | |
| 21 | def start_proxy_server(port, timeout): |
| 22 | prox = proxy.Proxy("127.0.0.1", port=port, port_end=port + 1) |
| 23 | if timeout > 0: |
| 24 | import time |
| 25 | |
| 26 | time.sleep(timeout) |
| 27 | prox.terminate() |
| 28 | else: |
| 29 | prox.proc.join() |
| 30 | |
| 31 | |
| 32 | if __name__ == "__main__": |
no test coverage detected
searching dependent graphs…