Bug#459693: libmail-gnupg-perl: mime_encrypt fails on bigger messages
    Niko Tyni 
    ntyni at debian.org
       
    Tue Jan  8 12:27:58 UTC 2008
    
    
  
tag 459693 confirmed
thanks
On Tue, Jan 08, 2008 at 06:16:39AM +0100, Albert Dengg wrote:
> Package: libmail-gnupg-perl
> Version: 0.10-2
> Severity: normal
> 
> i wrote a little test application for encrypting mails through procmail
> using Mail:GnuPG:
> however, with test messages larger then a few lines, i get timeout...
> (it looks like it is in _maybe_print)
Hi,
the problem is that Mail::GnuPG sends the whole message to gpg before
reading any of its output. With large messages the pipe buffer fills up
and both processes will block on write().
The same problem is also present when decrypting; it's reported upstream
in rt.cpan.org tickets #21302 and #21276.
The Mail::GnuPG code needs to interleave the reading and writing with
a select() loop. I have a patch almost ready, I'm just looking at
integrating it with a better fix for #412041.
Cheers,
-- 
Niko Tyni   ntyni at debian.org
    
    
More information about the pkg-perl-maintainers
mailing list