Skip to content
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

sometimes getting ws exception EADDRNOTAVAIL on PeerGroup shutdown #13

Open
dimxy opened this issue Jul 5, 2022 · 0 comments
Open

sometimes getting ws exception EADDRNOTAVAIL on PeerGroup shutdown #13

dimxy opened this issue Jul 5, 2022 · 0 comments

Comments

@dimxy
Copy link
Owner

dimxy commented Jul 5, 2022

Saw this in normaltx.js after await sleep(10k):

2022-07-05T10:00:24.939Z net:peer peer disconnecting... x://177.54.147.50:29404
2022-07-05T10:00:24.939Z net:peergroup:error peer is to disconnect, reason=Error: PeerGroup closing, left peer.length = 0
2022-07-05T10:00:24.939Z net:peer peer disconnecting... x://135.148.54.137:29404
2022-07-05T10:00:24.939Z net:peergroup finished, peers.length: 0
test finished
2022-07-05T10:00:24.941Z net:peergroup discovery connection error: Error: read EADDRNOTAVAIL
2022-07-05T10:00:24.941Z net:peergroup waiting for 10000 ms before connection retry
Waiting for the debugger to disconnect...
node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: read EADDRNOTAVAIL
    at TCP.onStreamRead (node:internal/stream_base_commons:220:20)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17)
Emitted 'error' event on Peer instance at:
    at Peer._error (/Users/dimxy/repo/bitgo-komodo-cc-lib/net/peer.js:171:10)
    at Socket.emit (node:events:402:35)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -49,
  code: 'EADDRNOTAVAIL',
  syscall: 'read'
}

Looks like discovery connection did not stop properly.
Connections were initially to non-local seeds

@dimxy dimxy changed the title sometimess exception EADDRNOTAVAIL on PeerGroup shutdown sometimes getting ws exception EADDRNOTAVAIL on PeerGroup shutdown Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant