+
Skip to content

Conversation

rodneyosodo
Copy link
Contributor

What type of PR is this?

This is a feature because it adds the functionality of having a reproducible agent URL if the minimum port is not taken

What does this do?

Refactor the port-checking logic in the getFreePort function by introducing a new helper function checkPortisFree, which streamlines the process of determining if a port is free and removes redundant error handling.

Which issue(s) does this PR fix/relate to?

No issue

Have you included tests for your changes?

Tested it manually

Did you document any new/modified feature?

No documentation needed

Notes

When getting free port to be use we start at the minimum port range i.e 6000. This makes the agent url more deterministic since in most cases the agent port will be 6000
The error channel is not used

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
SammyOina

This comment was marked as resolved.

@drasko drasko merged commit 6aec555 into ultravioletrs:main Aug 20, 2024
@rodneyosodo rodneyosodo deleted the noissue-start-at-known-port branch October 22, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载