Comments (3)
Confirmed that this does not happen with bulk return using massh.Config.Run()
from massh.
Looks like I set the stream to work in chunks of 1024
bytes here, which unfortunately causes a few problems as we're no longer reading line-by-line.
Now I know the cause, I will investigate a more robust way of retaining data integrity on the output channels.
from massh.
The function readToBytesChannel
, which processes the Stdout
and Stderr
stream, has been updated to read lines for better granularity and lower complexity.
A wait group has also been added to ensure that all goroutines are returned elegantly. There was a problem with readToBytesChannel
causing an issue further up the chain of execution, meaning each session was "completed" before all output had been processed.
Usage of this package should not be affected.
from massh.
Related Issues (9)
- Adjust how command output is returned HOT 4
- Pre-processing HOT 1
- Providing nil value to config.Stream() results in unexpected behaviour
- Executing instructions in a declaritive manner HOT 8
- Example in Documentation not building. HOT 1
- Run() does not return JobStack results correctly.
- Explore: Pausing
- Messaging from within Run and Stream methods
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from massh.