Skip to content

Ability to stream command output #438

@milolav

Description

@milolav

I've added ability to stream command output directly to a response. milolav@09642fb

Needed it to monitor manually invoked long running scripts. It is based on a code mentioned in this question https://stackoverflow.com/questions/19292113/not-buffered-http-responsewritter-in-golang

If script starts, a response will always be successful regardless of the exit code.

Would this addition be something in line with project goals?

One issue that I've noticed is when opening hook url in a browser, response gets delayed for a few seconds and I have no idea why. When opening with curl/wget response starts streaming immediately. Implementation from the stackoverflow ( https://play.golang.org/p/PpbPyXbtEs ) doesn't have this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions