yapapi icon indicating copy to clipboard operation
yapapi copied to clipboard

Allow yapapi to chose proxy port randomly from given range

Open lucekdudek opened this issue 3 years ago • 0 comments

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

lucekdudek avatar Jan 31 '23 10:01 lucekdudek