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

feature: add timeout handler for execSync in cri part #1318

Merged
merged 1 commit into from
May 15, 2018

Conversation

ZouRui89
Copy link
Contributor

Signed-off-by: Zou Rui [email protected]

Ⅰ. Describe what this PR did

This pr adds timeout handler for execSync in cri part.
I/O pipe mechanism is used to enhance the degree of simplicity, based on which the data type of memBuffer is changed to allow I/O operations.
Thus, instead of checking if the execution is finished every 100 millisecond, the error io.copy returns is used to control the data flow.

Ⅱ. Does this pull request fix one issue?

fixes #1274

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@ZouRui89
Copy link
Contributor Author

I closed the old one because a recently merged refactor pr caused many conflicts.
Thx a lot for your help and review. @YaoZengzeng @fuweid PTAL.

@fuweid
Copy link
Contributor

fuweid commented May 15, 2018

LGTM @YaoZengzeng Please take a look. If you don't have any question, I will merge this PR.

@fuweid fuweid requested a review from YaoZengzeng May 15, 2018 09:06
@YaoZengzeng
Copy link
Contributor

LGTM

Thanks for your excellent job @ZouRui89 😄

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

Successfully merging this pull request may close these issues.

[feature request] add timeout in ExecSync for CRI
4 participants