Bug#459693: libmail-gnupg-perl: mime_encrypt fails on bigger messages
ntyni at debian.org
Fri Jan 11 19:28:44 UTC 2008
tag 459693 patch upstream
forwarded 459693 http://rt.cpan.org/Public/Bug/Display.html?id=21276
On Tue, Jan 08, 2008 at 02:27:58PM +0200, Niko Tyni wrote:
> 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.
I'm attaching the patch I just sent upstream in rt.cpan.org #21276.
Note that this supersedes debian/patches/01_fix-race-on-bad-rcpts.patch
and also fixes #412041, so the old patch should be removed.
I won't upload a patched package right away: this is a rather substantial
change, and I'd prefer to get it integrated upstream. Let's wait a
while for them to respond first.
Niko Tyni ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10300 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20080111/64b79991/attachment.patch
More information about the pkg-perl-maintainers