Skip to content
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

Message::from_reader_many sometimes fails with "failed reading: armor header: not enough bytes" when reading from pipe #352

Open
hko-s opened this issue May 13, 2024 · 1 comment
Labels

Comments

@hko-s
Copy link
Contributor

hko-s commented May 13, 2024

In a loop like this:

while true; do
  echo "hello world" | rsop encrypt nist256.cert | rsop decrypt nist256.tsk
done

Reading the message in the second rsop instance sometimes fails with

Message("failed reading: armor header: not enough bytes")

The failing read uses Message::from_reader_many.

When I run echo "hello world" | rsop encrypt nist256.cert | cat | rsop decrypt nist256.tsk instead (with a cat added to the pipe), the problem goes away.

@hko-s
Copy link
Contributor Author

hko-s commented Jun 3, 2024

I've seen another read failure that might or might not have a similar underlying cause that errored out with not enough bytes in buffer: armor header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants