Don't block on STDIN open#2551
Conversation
|
breaks attach? |
|
@mlaventure ya, its related. Still trying to figure this out.... fifos can be a pain |
|
@crosbymichael I checked the
For this question, I see that the shim service always create fifo-stdin with WRONLY mode if the stdin is not empty. would it be blocked forever, if the client doesn't open it? If we remove the timeout ctx, I think this problem will be solved. 😄 |
This was found testing other runtime shims that are faster than runc(no containerization). This is a race that can cause the shim to block forever. It's not an issue for out/err because we open both sides of the pipe, but for stdin, it expects the client to have it opened. Signed-off-by: Michael Crosby <[email protected]>
9cc6dde to
bc1ff51
Compare
|
Thanks @fuweid ! |
|
😄 |
|
LGTM |
This was found testing other runtime shims that are faster than runc(no
containerization). This is a race that can cause the shim to block
forever. It's not an issue for out/err because we open both sides of
the pipe, but for stdin, it expects the client to have it opened.
Signed-off-by: Michael Crosby [email protected]