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(image): fix problem with open jar files #3516

Closed

Conversation

DmitriyLewen
Copy link
Contributor

@DmitriyLewen DmitriyLewen commented Feb 1, 2023

Description

fixes for following error:
PROTOCOL_ERROR; received from peer - Increase timeout for getting remote image to fix
unexpected EOF - Save layers smaller than 50MB to files and use this to parse files.

Related issues

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@DmitriyLewen DmitriyLewen self-assigned this Feb 3, 2023
}
return digest, rc, nil
return digest, size, rc, nil
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can return the cached layer here. Also, we should always cache layers when --slow is passed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

In addition, cachedFile is no longer needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@DmitriyLewen DmitriyLewen marked this pull request as ready for review February 3, 2023 11:08
@DmitriyLewen DmitriyLewen changed the title fix(image): increase timeout for getting remote image fix(image): fix problem with open jar files Feb 6, 2023
@DmitriyLewen
Copy link
Contributor Author

These fixes have been added to the following PRs:

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.

Unable to open JAR files
2 participants