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

GPGME::Error Bad file descriptor using GPGME::Key.find #115

Open
joshuamcginnis opened this issue Apr 16, 2018 · 0 comments
Open

GPGME::Error Bad file descriptor using GPGME::Key.find #115

joshuamcginnis opened this issue Apr 16, 2018 · 0 comments

Comments

@joshuamcginnis
Copy link

I'm using ruby 2.5.0 and gpgme 2.0.16 with rails and sidekiq. I'm spinning up about 40 GPG decryption jobs, processing about 10 jobs (using threads) * 3 processes concurrently.

Searching for a private key randomly raises GPGME::Error Bad file descriptor randomly in my jobs:

return unless GPGME::Key.find(:secret, PRIVATE_KEY_SHA).empty?

Two questions:
When would using GPGME::Key.find trigger this error?
Is this gem thread-safe?

Any insight would be much appreciated.

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

No branches or pull requests

1 participant