[tahoe-lafs-trac-stream] [zfec] #14: [patch] Make streaming from stdin / to stdout work.
zfec
trac at tahoe-lafs.org
Mon Mar 2 21:13:03 UTC 2015
#14: [patch] Make streaming from stdin / to stdout work.
------------------------------+---------------------------
Reporter: ericpollmann | Owner: zooko
Type: defect | Status: new
Priority: major | Milestone:
Component: component1 | Version:
Resolution: | Keywords: review-needed
Launchpad Bug: |
------------------------------+---------------------------
Comment (by davidsarah):
On 02/03/15 19:21, Eric Pollmann wrote:
> Thanks for the improvement! I just simplified the patches to use
args.inputfile == '-'
> which implements exactly what the documentation says.
That has a type error; `args.inputfile` is a file object, not a string.
How that I think about it, the behaviour should be the same for all non-
seekable files, which includes devices. A non-seekable file will give an
`IOError` with `errno.ESPIPE` (on Unix) or `errno.EBADF` (on Windows) from
the attempt to seek.
--
Ticket URL: <https://tahoe-lafs.org/trac/zfec/ticket/14#comment:6>
zfec <https://tahoe-lafs.org/trac/zfec>
efficient erasure-coding library
More information about the tahoe-lafs-trac-stream
mailing list