-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Remove nodes with same ip/port #35
Comments
Don't think so - see here |
but the id is computed randomly, right? what I mean is that not only it should delete nodes with the same id, but also nodes with the same ip/port. |
Why?
… On Oct 11, 2017, at 19:05, Vicente Dragicevic ***@***.***> wrote:
but the id is computed randomly, right? what I mean is that not only it should delete nodes with the same id, but also nodes with the same ip/port.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
For example, if you start a server for bootstrapping and 2 nodes, if one of the nodes reconnects and then goes offline again, the remaining node will try to send two messages to the offline node:
BTW, I'm using the python3.5 branch |
Why would anyone ever run more than one node on the same port on the same machine?
… On Oct 11, 2017, at 19:31, Vicente Dragicevic ***@***.***> wrote:
For example, if you start a server for bootstrapping and 2 nodes, if one of the nodes reconnects and then goes offline again, the remaining node will try to send two messages to the offline node:
Type a command(get/set):
set hello byebye
Did not received reply for msg id b'dyK00zT4pkYKRX3uZJ+pWIJ5TH0=' within 5 seconds
Did not received reply for msg id b'jQMY0ZiKXqz9UxC66BuYPOBVqWQ=' within 5 seconds
no response from 127.0.0.1:1235, removing from router
no response from 127.0.0.1:1235, removing from router
Value set.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I think I didn't explain it well enough: That happens when one of the nodes connects, disconnects, connects again and finally disconnects. I'm not talking about two nodes running at the same time on the same machine, what I mean is that a new node will be created and stored in the table even if it has already been stored before (which happens when the same node connects to the network multiple times, as a different id is created each time). |
I'm not sure why the node id would change on disconnect. If you mean in the case that someone destroys the existing |
Perfect, I will try that. Thanks! |
If a node is added to the heap, shouldn't a existing node with the same ip/port be deleted? Now, when a node reconnects it gets stored again.
The text was updated successfully, but these errors were encountered: