Skip to content

Instantly share code, notes, and snippets.

@mpetrunic
Last active October 14, 2020 06:43
Show Gist options
  • Select an option

  • Save mpetrunic/dd60c3824a3ea18307eb73e778234d41 to your computer and use it in GitHub Desktop.

Select an option

Save mpetrunic/dd60c3824a3ea18307eb73e778234d41 to your computer and use it in GitHub Desktop.
Libp2p dial protocol bug
2020-10-13 14:11:57 [] verbose: sending goodbye request to 16Uiu2HAkuRuvgU84nRHqCmMNKQUB2Axmn4be8AxgLbtP1LTdzyN7 requestId=86b199fe2bcd9be9, encoding=ssz_snappy
dialing
dialing protocol true
new stream
libp2p:upgrader outbound: starting new stream on [ '/eth2/beacon_chain/req/goodbye/1/ssz_snappy' ] +12ms
new mplex stream
libp2p:mplex new initiator stream 4 4 +1ms
libp2p:mplex initiator stream 4 4 send { id: 4, type: 'NEW_STREAM', data: '4' } +1ms
new connection stream Promise { <pending> }
libp2p:mplex initiator stream 4 4 send {
id: 4,
type: 'MESSAGE_INITIATOR',
data: <Buffer 13 2f 6d 75 6c 74 69 73 74 72 65 61 6d 2f 31 2e 30 2e 30 0a 2c 2f 65 74 68 32 2f 62 65 61 63 6f 6e 5f 63 68 61 69 6e 2f 72 65 71 2f 67 6f 6f 64 62 79 ... 15 more bytes>
} +0ms
2020-10-13 14:11:57 [] verbose: peer disconnected 16Uiu2HAkuRuvgU84nRHqCmMNKQUB2Axmn4be8AxgLbtP1LTdzyN7
libp2p:mplex:stream initiator stream 2 error AbortError: stream aborted
at nextAbortHandler (/home/mpetrunic/projects/eth2/lodestar/node_modules/abortable-iterator/index.js:37:20)
at AbortSignal.abortHandler (/home/mpetrunic/projects/eth2/lodestar/node_modules/abortable-iterator/index.js:16:29)
at AbortSignal.dispatchEvent (/home/mpetrunic/projects/eth2/lodestar/node_modules/event-target-shim/src/event-target.mjs:337:35)
at abortSignal (/home/mpetrunic/projects/eth2/lodestar/node_modules/abort-controller/src/abort-signal.ts:68:12)
at AbortController.abort (/home/mpetrunic/projects/eth2/lodestar/node_modules/abort-controller/src/abort-controller.ts:26:9)
at Object.abort (/home/mpetrunic/projects/eth2/lodestar/node_modules/libp2p-mplex/src/stream.js:61:23)
at onEnd (/home/mpetrunic/projects/eth2/lodestar/node_modules/libp2p-mplex/src/mplex.js:178:46)
at encode.end (/home/mpetrunic/projects/eth2/lodestar/node_modules/it-pushable/index.js:124:9)
at Mplex.sink (/home/mpetrunic/projects/eth2/lodestar/node_modules/libp2p-mplex/src/mplex.js:164:19)
at processTicksAndRejections (internal/process/task_queues.js:94:5) {
type: 'aborted',
code: 'ERR_MPLEX_STREAM_ABORT'
} +3ms
libp2p:mplex initiator stream 2 2 send { id: 2, type: 'RESET_INITIATOR', data: undefined } +1ms
libp2p:mplex:stream initiator stream 2 sink end AbortError: stream aborted
at nextAbortHandler (/home/mpetrunic/projects/eth2/lodestar/node_modules/abortable-iterator/index.js:37:20)
at AbortSignal.abortHandler (/home/mpetrunic/projects/eth2/lodestar/node_modules/abortable-iterator/index.js:16:29)
at AbortSignal.dispatchEvent (/home/mpetrunic/projects/eth2/lodestar/node_modules/event-target-shim/src/event-target.mjs:337:35)
at abortSignal (/home/mpetrunic/projects/eth2/lodestar/node_modules/abort-controller/src/abort-signal.ts:68:12)
at AbortController.abort (/home/mpetrunic/projects/eth2/lodestar/node_modules/abort-controller/src/abort-controller.ts:26:9)
at Object.abort (/home/mpetrunic/projects/eth2/lodestar/node_modules/libp2p-mplex/src/stream.js:61:23)
at onEnd (/home/mpetrunic/projects/eth2/lodestar/node_modules/libp2p-mplex/src/mplex.js:178:46)
at encode.end (/home/mpetrunic/projects/eth2/lodestar/node_modules/it-pushable/index.js:124:9)
at Mplex.sink (/home/mpetrunic/projects/eth2/lodestar/node_modules/libp2p-mplex/src/mplex.js:164:19)
at processTicksAndRejections (internal/process/task_queues.js:94:5) {
type: 'aborted',
code: 'ERR_MPLEX_STREAM_ABORT'
} +0ms
libp2p:mplex initiator stream 2 2 ended +0ms
libp2p:mplex:stream receiver stream 2 abort undefined +1ms
libp2p:mplex:stream receiver stream 2 source end undefined +0ms
libp2p:connection-manager checking limit of maxEventLoopDelay. current value: 1.4394119999999475 of Infinity +2s
libp2p:connection-manager checking limit of maxEventLoopDelay. current value: 1.427763000000141 of Infinity +2s
libp2p:connection-manager checking limit of maxEventLoopDelay. current value: 1.4025215000000344 of Infinity +2ms
Dial aborted
libp2p:connection-manager checking limit of maxEventLoopDelay. current value: 0.9148219999999583 of Infinity +2s
libp2p:connection-manager checking limit of maxEventLoopDelay. current value: 1.6920390000000225 of Infinity +3ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment