Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Restore blocking override for Net::SSL [RT#72790]

  • Loading branch information...
commit 6049e9d9eb2e22693053ad2af5ddba2b6824ac66 1 parent add42ed
Gisle Aas authored January 03, 2012

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. 7  lib/Net/HTTPS.pm
7  lib/Net/HTTPS.pm
@@ -72,6 +72,13 @@ sub http_default_port {
72 72
     443;
73 73
 }
74 74
 
  75
+if ($SSL_SOCKET_CLASS eq "Net::SSL") {
  76
+    # The underlying SSLeay classes fails to work if the socket is
  77
+    # placed in non-blocking mode.  This override of the blocking
  78
+    # method makes sure it stays the way it was created.
  79
+    *blocking = sub { };
  80
+}
  81
+
75 82
 1;
76 83
 
77 84
 =head1 NAME

0 notes on commit 6049e9d

Please sign in to comment.
Something went wrong with that request. Please try again.