goexpect fails when the client expects payloads larger than the default buffer size.
A dynamically growing byte slice will not work in this instance, due to the fact that the PTY File is not closed after receiving command output (i.e., does not receive io.EOF). As such, something like ioutil.ReadAll(...) cannot be used in this context, and will eventually just timeout waiting for io.EOF or an error.
Support should be added to at least make bufferSize configurable, preferably per GExpect instance.
goexpect fails when the client expects payloads larger than the default buffer size.
A dynamically growing byte slice will not work in this instance, due to the fact that the PTY File is not closed after receiving command output (i.e., does not receive io.EOF). As such, something like
ioutil.ReadAll(...)
cannot be used in this context, and will eventually just timeout waiting for io.EOF or an error.Support should be added to at least make
bufferSize
configurable, preferably perGExpect
instance.