1 This is a fix for a longstanding bug in Net::SSLeay, which caused writes
2 to broken connections to loop forever if SIGPIPE was blocked.
4 Martin Mares, June 2007
7 --- /usr/lib/perl5/Net/SSLeay.pm.mj 2007-06-29 22:12:18.000000000 +0200
8 +++ /usr/lib/perl5/Net/SSLeay.pm 2007-06-29 22:17:37.000000000 +0200
11 $vm = $trace>2 && $linux_debug ?
12 (split ' ', `cat /proc/$$/stat`)[22] : 'vm_unknown';
13 - warn " written so far $wrote:$written bytes (VM=$vm)\n" if $trace>2;
14 + warn " written so far $wrote:$written bytes (VM=$vm) brum\n" if $trace>2;
16 $errs .= print_errs('SSL_write');
17 + $errs .= "SSL_write $$: 1 - $!\n" if $wrote < 0 && !$errs;
18 return (wantarray ? (undef, $errs) : undef) if $errs;
20 return wantarray ? ($written, $errs) : $written;
21 --- /usr/lib/perl5/auto/Net/SSLeay/ssl_write_all.al.mj 2007-06-29 22:17:19.000000000 +0200
22 +++ /usr/lib/perl5/auto/Net/SSLeay/ssl_write_all.al 2007-06-29 22:17:35.000000000 +0200
25 $vm = $trace>2 && $linux_debug ?
26 (split ' ', `cat /proc/$$/stat`)[22] : 'vm_unknown';
27 - warn " written so far $wrote:$written bytes (VM=$vm)\n" if $trace>2;
28 + warn " written so far $wrote:$written bytes (VM=$vm) brum\n" if $trace>2;
30 $errs .= print_errs('SSL_write');
31 + $errs .= "SSL_write $$: 1 - $!\n" if $wrote < 0 && !$errs;
32 return (wantarray ? (undef, $errs) : undef) if $errs;
34 return wantarray ? ($written, $errs) : $written;