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

Support custom yamux.Config #205

Open
mickmister opened this issue Aug 2, 2022 · 0 comments
Open

Support custom yamux.Config #205

mickmister opened this issue Aug 2, 2022 · 0 comments

Comments

@mickmister
Copy link

When using the dlv debugger, the plugin's RPC call will be terminated while the debugger is paused. I have gotten around this by making this change in

mux, err := yamux.Client(conn, nil)

- 	mux, err := yamux.Client(conn, nil)
+	sessionConfig := yamux.DefaultConfig()
+	sessionConfig.EnableKeepAlive = true
+	sessionConfig.ConnectionWriteTimeout = time.Minute * 5
+	mux, err := yamux.Client(conn, sessionConfig)

Is it possible to allow for a config like this, or an alternative way to avoid having the RPC connection be interrupted?

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