Skip to content

transferTo can transfer only part of the file, so need to loop#613

Closed
jackshirazi wants to merge 1 commit intoapache:mainfrom
jackshirazi:fix-expandwar-partial-copy-bug
Closed

transferTo can transfer only part of the file, so need to loop#613
jackshirazi wants to merge 1 commit intoapache:mainfrom
jackshirazi:fix-expandwar-partial-copy-bug

Conversation

@jackshirazi
Copy link
Copy Markdown

We (Elastic APM) have a customer (using tomcat 9.0.72) that is hitting this bug. The file copy is getting interrupted (likely from CPU time slicing signals, which is happening because of additional profiling executing in the background) and so only partly completes. As the current implementation doesn't loop, this results in a corrupt war/zip file that can't be loaded. To complete the file copy, transferTo needs to loop

@ChristopherSchultz
Copy link
Copy Markdown
Contributor

LGTM

@ChristopherSchultz
Copy link
Copy Markdown
Contributor

@rmaucher applied this PR earlier today.

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.

2 participants