LtbLightning / bdk-rn

Bitcoin Development Kit - React Native Module
MIT License
50 stars 15 forks source link

Error: failed to lookup address information: nodename nor servname provided, or not known #51

Open Czino opened 1 year ago

Czino commented 1 year ago
          @BitcoinZavior yes, I am already using `concurrency` to speed things up a little

Originally posted by @Czino in https://github.com/LtbLightning/bdk-rn/issues/44#issuecomment-1590575399

Having set concurrency to just to 5 I noticed that in some instances the following error is thrown when a user calls the sync method around 5 times at the same time. (i.e. concurrency >= 25)

failed to lookup address information: nodename nor servname provided, or not known

After some digging I found the following explanation which is why I think concurrency might be the culprit behind

Wanted to take a note here, in case someone else hits this error and comes looking for it. Not sure if the issue should may be raised in the bdk/bdk-ffi repo

Czino commented 1 year ago

Increasing concurrency also has other unstable side effects.

After reducing concurrency to 2, the errors seem to disappear