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

builder: fix long stream sync #35404

Merged
merged 1 commit into from
Nov 4, 2017
Merged

Conversation

tonistiigi
Copy link
Member

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

Copy link
Member

@dnephin dnephin left a 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

@@ -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)
Copy link
Member

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>
@delissonjunio
Copy link

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

@tonistiigi
Copy link
Member Author

@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 17.11 or 17.12 /cc @thaJeztah

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit 2c1043c into moby:master Nov 4, 2017
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.

Docker fails to build with --stream with a large context
5 participants