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;
23 $vm = $trace>2 && $linux_debug ?
24 (split ' ', `cat /proc/$$/stat`)[22] : 'vm_unknown';
25 - warn " written so far $wrote:$written bytes (VM=$vm)\n" if $trace>2;
27 return wantarray ? ($written, '') : $written;
29 --- /usr/lib/perl5/auto/Net/SSLeay/ssl_write_all.al.mj 2007-06-29 22:17:19.000000000 +0200
30 +++ /usr/lib/perl5/auto/Net/SSLeay/ssl_write_all.al 2007-06-29 22:17:35.000000000 +0200
33 $vm = $trace>2 && $linux_debug ?
34 (split ' ', `cat /proc/$$/stat`)[22] : 'vm_unknown';
35 - warn " written so far $wrote:$written bytes (VM=$vm)\n" if $trace>2;
36 + warn " written so far $wrote:$written bytes (VM=$vm) brum\n" if $trace>2;
38 $errs .= print_errs('SSL_write');
39 + $errs .= "SSL_write $$: 1 - $!\n" if $wrote < 0 && !$errs;
40 return (wantarray ? (undef, $errs) : undef) if $errs;
42 return wantarray ? ($written, $errs) : $written;