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

x/crypto/ssh: session.Output() run a time-cost command hangs without returning #42090

Closed
danny-wang opened this issue Oct 20, 2020 · 2 comments
Closed
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@danny-wang
Copy link

go 1.16

$ go version

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

   session, err := client.NewSession()
defer session.Close()
if err != nil {
	logger.GetLogInstance().ErrorLogger.Error(fmt.Sprintf("new session error: %s", err.Error()))
	return "", err
}

result, err := session.Output(command)   // code stuck here
if err != nil {
	logger.GetLogInstance().ErrorLogger.Error(fmt.Sprintf("Failed to run command:%s, Err:%s", command, err.Error()))
	return "", err
}
logger.GetLogInstance().DebugLogger.Debug("run command:", command, " result:", string(result))
return string(result), nil
@gopherbot gopherbot added this to the Unreleased milestone Oct 20, 2020
@cagedmantis cagedmantis changed the title x/crypto/ssh use session.Output() run a time-cost command,example 20 min, but code stuck here, not return a err or return anything x/crypto/ssh: session.Output() run a time-cost command hangs without returning Oct 22, 2020
@cagedmantis cagedmantis added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Oct 22, 2020
@cagedmantis
Copy link
Contributor

@danny-wang What is in the command being executed?

@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants