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

Fix emp run lockup in 0.13 #1125

Merged
merged 1 commit into from
Apr 18, 2018
Merged

Fix emp run lockup in 0.13 #1125

merged 1 commit into from
Apr 18, 2018

Conversation

ejholmes
Copy link
Contributor

@ejholmes ejholmes commented Apr 18, 2018

Fixes #1113

In 0.13, stdout/stderr for emp run was split using the stdcopy package. Unfortunately, this doesn't play well with streamhttp.Heartbeat, which sends null characters and causes the emp client to lockup.

This removes the heartbeat, since it's mostly unnecessary, and causes other weird side effects (e.g. if you're using tmux, the pane will get "active" because it thinks there's output).

If using an ELB in front of the Empire daemon, the best thing to do is set a high idle timeout (maximum is 60 minutes) to prevent emp run sessions with no output from being killed. This is already the default recommendation in docs/cloudformation.json.

In 0.13, stdout/stderr were split using the stdcopy package.
Unfortunately, this doesn't play well with streamhttp.Heartbeat, which
sends null characters and causes the emp client to lockup.

This removes the heartbeat, since it's mostly unecessary, and causes
other weird side effects (e.g. if you're using tmux, the pain will get
"active" because it thinks there's output).

If using an ELB in front of the Empire daemon, the best thing to do is
set a high idle timeout (maximum is 60 minutes) to prevent emp run
sessions with no output from being killed. This is already the default
recommendation in docs/cloudformation.json.
@ejholmes ejholmes requested a review from a team April 18, 2018 01:12
@ejholmes ejholmes merged commit b042daa into stable-0.13 Apr 18, 2018
@ejholmes ejholmes deleted the 0.13-emp-run-stall branch April 18, 2018 01:56
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.

None yet

2 participants