maidsafe-archive / MaidSafe

This is the super-project in which each MaidSafe library resides. Some information is common to all libraries, and is detailed here. Library-specific information can be found in each library's wiki.
Other
583 stars 102 forks source link

Routing - Race condition on Connect request. #43

Closed chandraprakash closed 12 years ago

chandraprakash commented 12 years ago

When both peers initiate connection request together they disallow each other's request. After the pending list is cleared at one of the node, it tries again and fails to proceed as pending list at other end still had the id. This results in an endless loop of trying to connect.

chandraprakash commented 12 years ago

https://github.com/maidsafe/MaidSafe-Routing/commit/7fda4d9024f01181b11497d503bf1f5218e14af4 Fixes this issue.

chandraprakash commented 12 years ago

Not resolved completely. This issue is seen on windows machine.

chandraprakash commented 12 years ago

This commit should fix this issue. https://github.com/maidsafe/MaidSafe-Routing/commit/0f1baf9fbc2a7736e6b8cada21f91c25bee969f7

Collision is resolved by giving priority to smaller node id.