Skip Menu |
 

This queue is for tickets about the Net-SSLeay CPAN distribution.

Report information
The Basics
Id: 44170
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Net-SSLeay

People
Owner: MIKEM [...] cpan.org
Requestors: mj [...] ucw.cz
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.35
Fixed in: (no value)



Subject: Writes on broken connections loop forever
Download (untitled) / with headers
text/plain 268b
This is a fix for a longstanding bug in Net::SSLeay, which caused writes to broken connections to loop forever if SIGPIPE was blocked. (I have submitted this to Debian bug tracker as Bug #431113 in June 2007, but I never got an answer and the problem still persists.)
Subject: perl-ssleay.diff
Download perl-ssleay.diff
text/x-diff 1.2k
This is a fix for a longstanding bug in Net::SSLeay, which caused writes to broken connections to loop forever if SIGPIPE was blocked. Martin Mares, June 2007 --- /usr/lib/perl5/Net/SSLeay.pm.mj 2007-06-29 22:12:18.000000000 +0200 +++ /usr/lib/perl5/Net/SSLeay.pm 2007-06-29 22:17:37.000000000 +0200 @@ -1659,9 +1659,10 @@ } $vm = $trace>2 && $linux_debug ? (split ' ', `cat /proc/$$/stat`)[22] : 'vm_unknown'; warn " written so far $wrote:$written bytes (VM=$vm)\n" if $trace>2; $errs .= print_errs('SSL_write'); + $errs .= "SSL_write $$: 1 - $!\n" if $wrote < 0 && !$errs; return (wantarray ? (undef, $errs) : undef) if $errs; } return wantarray ? ($written, $errs) : $written; --- /usr/lib/perl5/auto/Net/SSLeay/ssl_write_all.al.mj 2007-06-29 22:17:19.000000000 +0200 +++ /usr/lib/perl5/auto/Net/SSLeay/ssl_write_all.al 2007-06-29 22:17:35.000000000 +0200 @@ -26,9 +26,10 @@ } $vm = $trace>2 && $linux_debug ? (split ' ', `cat /proc/$$/stat`)[22] : 'vm_unknown'; warn " written so far $wrote:$written bytes (VM=$vm)\n" if $trace>2; $errs .= print_errs('SSL_write'); + $errs .= "SSL_write $$: 1 - $!\n" if $wrote < 0 && !$errs; return (wantarray ? (undef, $errs) : undef) if $errs; } return wantarray ? ($written, $errs) : $written;
Download (untitled) / with headers
text/plain 120b
Thanks for the patch. I dont know what happened to your earlier submission. The patch has now been applied to the SVN.
CC: bug-Net-SSLeay [...] rt.cpan.org, net-ssleay-devel [...] lists.alioth.debian.org
Subject: Re: [rt.cpan.org #44170] Writes on broken connections loop forever
Date: Mon, 16 Mar 2009 00:15:56 +0100 (CET)
To: mj [...] ucw.cz
From: sampo [...] symlabs.com
Martin Mares via RT wrote: Show quoted text
> Sun Mar 15 07:37:13 2009: Request 44170 was acted upon. > Transaction: Ticket created by marm > Queue: Net-SSLeay > Subject: Writes on broken connections loop forever > Broken in: 1.35 > Severity: Normal > Owner: Nobody > Requestors: mj@ucw.cz > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=44170 > > > > This is a fix for a longstanding bug in Net::SSLeay, which caused writes > to broken connections to loop forever if SIGPIPE was blocked. > > (I have submitted this to Debian bug tracker as Bug #431113 in June > 2007, but I never got an answer and the problem still persists.)
I think it is dangerous to assume that your favorite distribution or cpan bug trackers would ever be read by the maintainers of the software packages in question. When I was running Net::SSLeay, only direct mail to me worked. Nowdays others maintain Net::SSLeay and I understand that the following mailing list is the appropriate channel: net-ssleay-devel@lists.alioth.debian.org Cheers, --Sampo


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.