Method
__init__
(
self,
host,
port=9091,
port_end=9199,
web_port=0,
timeout_client=600,
timeout_server=600,
tracker_addr=None,
index_page=None,
resource_files=None,
)
Source from the content-addressed store, hash-verified
| 619 | """ |
| 620 | |
| 621 | def __init__( |
| 622 | self, |
| 623 | host, |
| 624 | port=9091, |
| 625 | port_end=9199, |
| 626 | web_port=0, |
| 627 | timeout_client=600, |
| 628 | timeout_server=600, |
| 629 | tracker_addr=None, |
| 630 | index_page=None, |
| 631 | resource_files=None, |
| 632 | ): |
| 633 | self.proc = PopenWorker() |
| 634 | # send the function |
| 635 | self.proc.send( |
| 636 | _popen_start_proxy_server, |
| 637 | [ |
| 638 | host, |
| 639 | port, |
| 640 | port_end, |
| 641 | web_port, |
| 642 | timeout_client, |
| 643 | timeout_server, |
| 644 | tracker_addr, |
| 645 | index_page, |
| 646 | resource_files, |
| 647 | ], |
| 648 | ) |
| 649 | # receive the port |
| 650 | self.port = self.proc.recv() |
| 651 | self.host = host |
| 652 | |
| 653 | def terminate(self): |
| 654 | """Terminate the server process""" |
Tested by
no test coverage detected