easyssh-proxy
easyssh-proxy copied to clipboard
The default size buf was used to read the command execution result, resulting in an incomplete command execution result.
func (ssh_conf *MakeConfig) Stream(command string, timeout ...time.Duration) (<-chan string, <-chan string, <-chan bool, <-chan error, error) {
... ...
// combine outputs, create a line-by-line scanner
stdoutReader := io.MultiReader(outReader)
stderrReader := io.MultiReader(errReader)
stdoutScanner := bufio.NewScanner(stdoutReader)
stderrScanner := bufio.NewScanner(stderrReader)
... ...
The default buf size is 4096. This results in an incomplete output when the command stdout or stderr is greater than this value
@appleboy Is this project still being maintained?
@Li4n0 Yes
@Li4n0 Yes
So will this problem be solved? @appleboy
how about add bufsize config?
fixed in #78