You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows: I can connect many peers to the bootstrap, no problem (tried 10 all worked). However, if I connect and disconnect the same peer I can only do it twice.( so the same ports..). The 3 rd time it does not properly connect it gets somehow locked when kademlia thread is started. After “killing” the peer (which hangs), no other connection is possible there is an exception thrown if you try to connect ANY peer on any ports. Restarting the bootstrap fixes the problem, and it is consistent (enough to use only one peer, connect to bootstrap, close it, start again, works second time, hangs the third time.
With Poco Kademlia, it happens always, you can connect and disconnect “same peer” (same ports) to bootstrap twice, the third time it fails (the peer practically hangs when it tries to open the session). Restarting the bootstrap will reset the counter but again you can do it twice .However, there is no problem connecting different peers (different ports) one after another, it’s the disconnect/reconnect on the same ports which creates the problem.
Linux: Bootstrap connections don't seem to work at all on Ubuntu for one peer on a local network and work up to a few times on Windows (2 times before failing after, as Adrian mentioned). We can see that packets are being exchanged but they are not received appropriately by the peer. This has to do with the peer discovery process after initial connection with the bootstrap. We can work on getting these messages passed more efficiently (reducing the total number of packets sent for discovery/bootstrapping), but I wonder if this is an issue with the Proactor's polling mechanism.
For the hanging bug, just to recap, it happens using the “example” programs also, so nothing to do with our own software. Depending on what system you run you may be able to connect 2-3 times but also you may even fail the first time. I suppose if you run in a VM your chance to fail even the first time increases, may have to do with the system running slower, not the OS itself. I see in tests ( enabling logging for Engine and Session) that the initialization messages (hundreds) almost double after each disconnect/reconnect which may explain why even on “fast” systems (Windows runs on bare metal, not VM like we usually run Linux) it will happen after a few connections. In Linux (including WSL) fails the first time. Probably some time hazard when sending/receiving the initialization messages.
The text was updated successfully, but these errors were encountered:
Windows:
I can connect many peers to the bootstrap, no problem (tried 10 all worked). However, if I connect and disconnect the same peer I can only do it twice.( so the same ports..). The 3 rd time it does not properly connect it gets somehow locked when kademlia thread is started. After “killing” the peer (which hangs), no other connection is possible there is an exception thrown if you try to connect ANY peer on any ports. Restarting the bootstrap fixes the problem, and it is consistent (enough to use only one peer, connect to bootstrap, close it, start again, works second time, hangs the third time.
With Poco Kademlia, it happens always, you can connect and disconnect “same peer” (same ports) to bootstrap twice, the third time it fails (the peer practically hangs when it tries to open the session). Restarting the bootstrap will reset the counter but again you can do it twice .However, there is no problem connecting different peers (different ports) one after another, it’s the disconnect/reconnect on the same ports which creates the problem.
Linux:
Bootstrap connections don't seem to work at all on Ubuntu for one peer on a local network and work up to a few times on Windows (2 times before failing after, as Adrian mentioned). We can see that packets are being exchanged but they are not received appropriately by the peer. This has to do with the peer discovery process after initial connection with the bootstrap. We can work on getting these messages passed more efficiently (reducing the total number of packets sent for discovery/bootstrapping), but I wonder if this is an issue with the Proactor's polling mechanism.
For the hanging bug, just to recap, it happens using the “example” programs also, so nothing to do with our own software. Depending on what system you run you may be able to connect 2-3 times but also you may even fail the first time. I suppose if you run in a VM your chance to fail even the first time increases, may have to do with the system running slower, not the OS itself. I see in tests ( enabling logging for Engine and Session) that the initialization messages (hundreds) almost double after each disconnect/reconnect which may explain why even on “fast” systems (Windows runs on bare metal, not VM like we usually run Linux) it will happen after a few connections. In Linux (including WSL) fails the first time. Probably some time hazard when sending/receiving the initialization messages.
The text was updated successfully, but these errors were encountered: