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

Add parser for tty containers #6

Merged
merged 2 commits into from
Jan 17, 2016
Merged

Add parser for tty containers #6

merged 2 commits into from
Jan 17, 2016

Conversation

cammellos
Copy link
Collaborator

This commits add a parser for containers with the tty flag set:

Before attaching a container, it inspects it to check if tty is enabled.
If it is enabled, it will skip the parsing of the header, as not sent by docker API.

Let me know if you would like me to change something!
Thanks
andrea

function parseTty (chunk, enc, cb) {
this.payload.append(chunk)

publish.bind(this)()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be very very slow. Would you mind attaching publish to result, and calling it straight from there?

@cammellos
Copy link
Collaborator Author

Sure,
thanks, for the comment,

I have attached publish to result,

alternatively I have pushed https://github.com/cammellos/docker-loghose/tree/add-tty-parser-result
which gets rid of the last .bind()

which one do you prefer?

mcollina added a commit that referenced this pull request Jan 17, 2016
Add parser for tty containers
@mcollina mcollina merged commit 58ba584 into mcollina:master Jan 17, 2016
@mcollina
Copy link
Owner

Released as 0.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants