-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
builder: fix long stream sync #35404
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
just a naming nit
builder/dockerfile/builder.go
Outdated
@@ -131,10 +131,10 @@ func (bm *BuildManager) initializeClientSession(ctx context.Context, cancel func | |||
} | |||
logrus.Debug("client is session enabled") | |||
|
|||
ctx, cancelCtx := context.WithTimeout(ctx, sessionConnectTimeout) | |||
sessionCtx, cancelCtx := context.WithTimeout(ctx, sessionConnectTimeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe connectCtx
since the context is for connect, but other session calls below use the original ctx. sessionCtx
seems misleading
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Sorry, I'm not really familiar with Docker's development timeline yet - when exactly can I get to try the fix out? I would really like to be working with this as soon as possible |
25b60a8
to
c6703b7
Compare
@delissonjunio After it gets merged, depending on what priority is assigned to the issue it may get backported to affected releases. If not, it will end up either in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
fixes #35391
The 5 second timeout should only count for the time it takes to connect to the session, not for the actual transfer.
Signed-off-by: Tonis Tiigi tonistiigi@gmail.com