Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tunnel Pool GetNextTunnel #1015

Closed
ghost opened this issue Nov 23, 2017 · 4 comments
Closed

Tunnel Pool GetNextTunnel #1015

ghost opened this issue Nov 23, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 23, 2017

In libi2pd/TunnelPool.cpp the tunnel is chosen randomly for half of the pools size + 1.
What is the reason for this - in case of tunnel failure to switch over to a healthy tunnel ?

Thanx.

@orignal
Copy link
Contributor

orignal commented Nov 23, 2017

Just to select random "good" tunnel, assuming that more than half are good.

@ghost
Copy link
Author

ghost commented Nov 23, 2017

Okay so in terms of bandwidth and tunnel utilization it would be okay to randomly select on the whole poole size ?

@orignal
Copy link
Contributor

orignal commented Nov 23, 2017

A stream is trying to find working tunnels pair. That's the goal. Nothing about bandwidth utilization, etc.

@ghost
Copy link
Author

ghost commented Nov 23, 2017

Okay, thanks for clarifying.

@ghost ghost closed this as completed Nov 23, 2017
This issue was closed.
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

No branches or pull requests

1 participant