-
Notifications
You must be signed in to change notification settings - Fork 104
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
BrokenPipeError for remote archives #233
Comments
it is not in zlib. i kept zlib default level and just appended >64kB dummy bytes to compression result (and stripped it from end before invoking decompress) - that breaks it in exactly the same way. |
I found it is related to pipe I/O, fix coming soon, just doing some final tests. |
See PR #234. |
@ThomasWaldmann I run the tests with |
I encountered this issue in a bit strange way, by trying to use zlib level 0.
But I guess this could happen otherwise also, e.g. if data compresses really badly. Or even otherwise.
In attic/key.py (about line 80), there is a line like:
Add compression level 0 there (instead of the implicit default level 6):
Now run the unit tests: fakeroot -u tox
You may have one additional issue in the test log now:
It was reproduced by @paolodina on ubuntu 14.10 64bit and me on ubuntu 14.04 64bit.
dcrouch from IRC #attic could not reproduce on centos 6.6.
A special thing to note about zlib level 0 is that output data always will be bigger than input data.
The text was updated successfully, but these errors were encountered: