yapapi
yapapi copied to clipboard
Allow yapapi to chose proxy port randomly from given range
When working on https://github.com/golemfactory/dapp-runner/issues/70 we discovered that the most optimal solution to proxy port race condition would be to change yapapi behavior.
Both http_proxy and socket_proxy modules have similar interfaces required port to be specified when initializing
- https://github.com/golemfactory/yapapi/blob/master/yapapi/contrib/service/http_proxy.py
- https://github.com/golemfactory/yapapi/blob/master/yapapi/contrib/service/socket_proxy.py
ToDo:
- [ ] Allow yapapi modules to select random proxy port when it is not specified
- [ ] Return selected port
- [ ] Add argument[s] that would specific range from which the port cna be selected