> 
> Hey folks,
> 
>   I'm trying to get GnuPG::Interface working and I've run into a
> problem. It seems that when trying to decrypt a file where the plaintext
> version is over 61068 bytes that GnuPG::Interface just hangs. I've done
> extensive testing and it appears to work just fine when the plaintext
> file is that size or below. I've tried it using the Debian package
> libgnupg-interface-perl and also with the latest source from CPAN built
> on both the Debian box and also a Redhat ES 3.0 box. Decryption of the
> files with gpg from the command line works just fine. If anyone has any
> idea what could be causing this I would appreciate your thoughts. Also,
> if there is any other information that I can provide to help please let
> me know. Here is the script I'm using to decrypt the file for testing:
> 

I suspected it might be a buffering problem, and the docs for
GnuPG::Interface state in the FAQ:

"When having GnuPG process a large message, sometimes it just hanges there.

    Your problem may be due to buffering issues; when GnuPG reads/writes
to non-direct filehandles (those that are sent to filehandles which you
read to from into memory, not that those access the disk), buffering
issues can mess things up. I recommend looking into "options" in
GnuPG::Handles."

Your code did not appear to turn off buffering for the handles, can you
try this and see if it fixes the issue? I tested G::I on much bigger
files fo1r performance issues without problems, but always used
unbuffered handles.

HTH,

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to