-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
world: retry chunk read on OSError too
Closes #1790. If a chunk fails reading due to an underlying operating system IO error, we can invoke the retry logic too. No clue what could cause this to happen beyond hardware faults. Also lower the sleep time to 0.25s down from 0.5s because half a second of sleeping for each chunk this happens on seems incredibly overkill. Making the nbt code raise a CorruptChunkError in this case also means that failing to read a chunk due to an IOError is not a fatal error anymore, it'll simply skip it and move on.
- Loading branch information
1 parent
c53268e
commit 1355f8c
Showing
2 changed files
with
8 additions
and
6 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