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

fix: network message timeout #3106

Open
wants to merge 5 commits into
base: v6/develop
Choose a base branch
from

Conversation

zeroxbt
Copy link
Contributor

@zeroxbt zeroxbt commented Mar 15, 2024

Currently node only aborts message if reading from the stream takes longer than the specified timeout.
This PR ensure that the timeout is measured from the start of the operation, which includes dialing the peer (stream creation) and writing to the stream aswell.
The timeout abort controller dependency is removed as it is not necessary since node v16.

@djordjekovac
Copy link
Contributor

Looks good, tested in local and it's working

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.

2 participants