-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redmine #6027: Directories randomly changed to files.
This is quite nasty and border case scenario. For recursive file copying if connection was timeouted recourse copying was continued. In some cases timeouted package was sent by the server (usually under heavy load) and was wrongly interpreted as response for next request. Usually (if not always) directories were created first and then files, so most often directory was replaced with a file and content of the file was corrupted protocol leftovers (t 74OK: 0 432 0 0 20010 1302 140197032) which is CFEngine copy file protocol transaction header and data. The fix is to drpo connection immediately after experiencing timeouts in all cases where files and/or directories are copied recursively in loop. Changelog: Redmine #6027 Directories should no more be changed randomly into files. (cherry picked from commit 94ea8cd)
- Loading branch information
Showing
5 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters