You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to use a debugger while developing a plugin, I need to modify the below code to allow for the RPC connection's timeout to tolerate the amount of time the debugger is paused. Before making this change, the plugin gets disconnected due to the failing timeout.
funcNewRPCClient(conn io.ReadWriteCloser, pluginsmap[string]Plugin) (*RPCClient, error) {
sessionConfig:=yamux.DefaultConfig()
sessionConfig.EnableKeepAlive=truesessionConfig.ConnectionWriteTimeout=time.Minute*5// Create the yamux client so we can multiplex mux, err:=yamux.Client(conn, sessionConfig)
I'd like to be able to provide a value to this function, in order to allow for customizing the yamux.Config used here. I'd like to make the change to make this configurable, possibly by environment variables if that's the most appropriate way. Any advice on how this change should be done?
The text was updated successfully, but these errors were encountered:
In order to use a debugger while developing a plugin, I need to modify the below code to allow for the RPC connection's timeout to tolerate the amount of time the debugger is paused. Before making this change, the plugin gets disconnected due to the failing timeout.
go-plugin/rpc_client.go
Lines 64 to 66 in e889c1b
I'd like to be able to provide a value to this function, in order to allow for customizing the
yamux.Config
used here. I'd like to make the change to make this configurable, possibly by environment variables if that's the most appropriate way. Any advice on how this change should be done?The text was updated successfully, but these errors were encountered: