r44740 - in /trunk/libnet-ssleay-perl/debian: changelog patches/10fix_pod.patch patches/20no-stray-libz-link.patch patches/30use-sockaddr_in.patch patches/431113_report_on_broken_connection.patch patches/series

carnil-guest at users.alioth.debian.org carnil-guest at users.alioth.debian.org
Thu Sep 24 20:52:10 UTC 2009


Author: carnil-guest
Date: Thu Sep 24 20:52:05 2009
New Revision: 44740

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=44740
Log:
Add 431113_report_on_broken_connection.patch: When the underlying TCP
connection gets broken and the SIGPIPE signal is blocked, the 
ssl_write_all method loops forever instead of reporting the error 
properly. Thanks to Martin Mares for reporting (Closes: #431113)

Added:
    trunk/libnet-ssleay-perl/debian/patches/431113_report_on_broken_connection.patch
Modified:
    trunk/libnet-ssleay-perl/debian/changelog
    trunk/libnet-ssleay-perl/debian/patches/10fix_pod.patch
    trunk/libnet-ssleay-perl/debian/patches/20no-stray-libz-link.patch
    trunk/libnet-ssleay-perl/debian/patches/30use-sockaddr_in.patch
    trunk/libnet-ssleay-perl/debian/patches/series

Modified: trunk/libnet-ssleay-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-ssleay-perl/debian/changelog?rev=44740&op=diff
==============================================================================
--- trunk/libnet-ssleay-perl/debian/changelog (original)
+++ trunk/libnet-ssleay-perl/debian/changelog Thu Sep 24 20:52:05 2009
@@ -13,6 +13,12 @@
   * Minimize debian/rules, adjust debhelper/quilt build dependencies.
   * Fix path in examples, thanks to Dario Minnucci for the bug report
     (closes: #543664).
+
+  [ Salvatore Bonaccorso ]
+  * Add 431113_report_on_broken_connection.patch: When the underlying TCP
+    connection gets broken and the SIGPIPE signal is blocked, the 
+    ssl_write_all method loops forever instead of reporting the error 
+    properly. Thanks to Martin Mares for reporting (Closes: #431113)
 
  -- gregor herrmann <gregoa at debian.org>  Sun, 16 Nov 2008 20:45:35 +0100
 

Modified: trunk/libnet-ssleay-perl/debian/patches/10fix_pod.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-ssleay-perl/debian/patches/10fix_pod.patch?rev=44740&op=diff
==============================================================================
--- trunk/libnet-ssleay-perl/debian/patches/10fix_pod.patch (original)
+++ trunk/libnet-ssleay-perl/debian/patches/10fix_pod.patch Thu Sep 24 20:52:05 2009
@@ -2,7 +2,7 @@
 Description: Fix overlong lines and typos in POD
 --- a/lib/Net/SSLeay.pm
 +++ b/lib/Net/SSLeay.pm
-@@ -987,7 +987,8 @@ named files.
+@@ -987,7 +987,8 @@
      my $bio = Net::SSLeay::BIO_new_file($crlfilename, 'r');
      my $crl = Net::SSLeay::PEM_read_bio_X509_CRL($bio);
      if ($crl) {

Modified: trunk/libnet-ssleay-perl/debian/patches/20no-stray-libz-link.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-ssleay-perl/debian/patches/20no-stray-libz-link.patch?rev=44740&op=diff
==============================================================================
--- trunk/libnet-ssleay-perl/debian/patches/20no-stray-libz-link.patch (original)
+++ trunk/libnet-ssleay-perl/debian/patches/20no-stray-libz-link.patch Thu Sep 24 20:52:05 2009
@@ -1,6 +1,6 @@
 --- a/inc/Module/Install/PRIVATE/Net/SSLeay.pm
 +++ b/inc/Module/Install/PRIVATE/Net/SSLeay.pm
-@@ -94,8 +94,8 @@ EOM
+@@ -94,8 +94,8 @@
          $opts->{optimize} = '-O2 -g';
          push @{ $opts->{lib_links} },
               ($rsaref

Modified: trunk/libnet-ssleay-perl/debian/patches/30use-sockaddr_in.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-ssleay-perl/debian/patches/30use-sockaddr_in.patch?rev=44740&op=diff
==============================================================================
--- trunk/libnet-ssleay-perl/debian/patches/30use-sockaddr_in.patch (original)
+++ trunk/libnet-ssleay-perl/debian/patches/30use-sockaddr_in.patch Thu Sep 24 20:52:05 2009
@@ -4,7 +4,7 @@
 
 --- a/t/local/06_tcpecho.t
 +++ b/t/local/06_tcpecho.t
-@@ -15,7 +15,7 @@ my $msg = 'ssleay-tcp-test';
+@@ -15,7 +15,7 @@
  
  {
      my $ip = "\x7F\0\0\x01";
@@ -15,7 +15,7 @@
      bind($sock, $serv_params) or die;
 --- a/t/local/07_sslecho.t
 +++ b/t/local/07_sslecho.t
-@@ -13,7 +13,7 @@ my $pid;
+@@ -13,7 +13,7 @@
  
  my $port = 1212;
  my $dest_ip = gethostbyname('localhost');
@@ -24,7 +24,7 @@
  
  my $msg = 'ssleay-test';
  my $cert_pem = File::Spec->catfile('t', 'data', 'cert.pem');
-@@ -31,7 +31,7 @@ Net::SSLeay::library_init();
+@@ -31,7 +31,7 @@
  
  {
      my $ip = "\x7F\0\0\x01";

Added: trunk/libnet-ssleay-perl/debian/patches/431113_report_on_broken_connection.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-ssleay-perl/debian/patches/431113_report_on_broken_connection.patch?rev=44740&op=file
==============================================================================
--- trunk/libnet-ssleay-perl/debian/patches/431113_report_on_broken_connection.patch (added)
+++ trunk/libnet-ssleay-perl/debian/patches/431113_report_on_broken_connection.patch Thu Sep 24 20:52:05 2009
@@ -1,0 +1,17 @@
+Description: When the underlying TCP connection gets broken and the
+ SIGPIPE signal is blocked, the ssl_write_all method loops forever 
+ instead of reporting the error properly.
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/431113
+Bug: http://rt.cpan.org/Public/Bug/Display.html?id=44170
+Author: Martin Mares <mj at ucw.cz>
+--- a/lib/Net/SSLeay.pm
++++ b/lib/Net/SSLeay.pm
+@@ -1931,6 +1931,7 @@
+ 	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;

Modified: trunk/libnet-ssleay-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libnet-ssleay-perl/debian/patches/series?rev=44740&op=diff
==============================================================================
--- trunk/libnet-ssleay-perl/debian/patches/series (original)
+++ trunk/libnet-ssleay-perl/debian/patches/series Thu Sep 24 20:52:05 2009
@@ -1,3 +1,4 @@
 10fix_pod.patch
 20no-stray-libz-link.patch
 30use-sockaddr_in.patch
+431113_report_on_broken_connection.patch




More information about the Pkg-perl-cvs-commits mailing list