Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Fix: Stream read timeout #99

Merged
merged 1 commit into from
Feb 25, 2021
Merged

Conversation

aarshkshah1992
Copy link
Collaborator

No description provided.

@@ -19,6 +19,8 @@ import (
manet "github.com/multiformats/go-multiaddr/net"
)

var streamReadTimeout = 60 * time.Second
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we get timeout in one place, so it can be set as a config option by a consumer consistently, rather than being defined in each sub module as a variable that can't be changed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@willscott That change will need changes across submodules now. Please can we merge this and this later ? Have created a follow-up issue at libp2p/go-libp2p#1035 and assigned it to myself.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup. just wanted to raise that the downside is now it's basically impossible to change this

@Stebalien Stebalien merged commit 4b9ee56 into master Feb 25, 2021
@aarshkshah1992 aarshkshah1992 deleted the fix/timeout-incoming-stream-reads branch March 1, 2021 04:38
@Stebalien Stebalien mentioned this pull request May 11, 2021
27 tasks
@aschmahmann aschmahmann mentioned this pull request May 14, 2021
71 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants