Skip to content

bugfix: add timeout for stopping p2p server#16

Merged
yasyzb merged 1 commit intodevelopfrom
bugfix/p2p-timeout
Apr 11, 2022
Merged

bugfix: add timeout for stopping p2p server#16
yasyzb merged 1 commit intodevelopfrom
bugfix/p2p-timeout

Conversation

@yasyzb
Copy link

@yasyzb yasyzb commented Apr 11, 2022

Description

For now, when accepting p2p peers in p2p server, we will run runEthPeer and RunPeer in diffHandler and snapHandler concurrently, so sometimes runEthPeer will hang there for waiting for the signal that it missed before it runninng.

This will cause we can not stop the bsc node gracefully, so we add a timeout for stopping p2p server and a timeout for handling p2p peers.

@yasyzb yasyzb changed the base branch from main to develop April 11, 2022 06:15
@yasyzb yasyzb merged commit c5b5ae1 into develop Apr 11, 2022
@yasyzb yasyzb deleted the bugfix/p2p-timeout branch April 11, 2022 06:19
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

Successfully merging this pull request may close these issues.

1 participant

Comments