Closed DeltaF1 closed 5 years ago
It looks like the problem is in hyperdiscovery.
It cycles through a list of default ports, but that list is the same for two different processes, so there will be a port conflict.
Weird. If it fails one port, shouldn't it go to the next? 🤔
This might change once we migrate to hyperswarm within hyperdiscovery.
You're right it looks like it does try to cycle if the port is in use, so my guess might be off-base. The traceback leads to something to do with DNS in utp-native.
Weeeeird. What OS and node version is this? I think it'll be safe to put off until we get hyperswarm integrated
Ubuntu on Windows Subsystem for Linux, node v10.16.0
It could be that up-native failed in your machine. Can you try node 8? And in the first few lines of discovery-swarm there is a try catch around the requiring of up-native and it doesn't print anything.. try printing there.
Gonna close this for now since it's not reproducing.
Expected Behaviour:
Using the dat-sdk in two different instances of node should allow for cross-process swarming
Actual behaviour:
Requiring the dat-sdk while it is open in another node instance produces a traceback, and replication does not occur between processes
Environment:
Ubuntu on Windows Subsystem for Linux, node v10.16.0
Traceback: