Changeset 735


Ignore:
Timestamp:
04/04/2012 08:29:07 PM (14 months ago)
Author:
sullo
Message:

Default to use Net::SSL over SSLeay due to too many memory issues.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/CHANGES.txt

    r732 r735  
    1818        - Fix vhost not being set properly, thanks to Brian Poole 
    1919        - Fix crash on invalid regex chars in robots.txt (dis)allow lines 
     20        - Default to use Net::SSL instead of Net::SSLeay as a result of too many memory issues in SSLeay 
    20212011-06-14 
    2122        - Fix condition where match_1 or match_1_or are 4xx response code 
  • trunk/plugins/LW2.pm

    r734 r735  
    7878was no other way to quickly change SSL Engine. 
    7979lw_ssl_engine can have these values: 
    80         auto    = autodetection where it uses SSLeay first 
     80        auto    = autodetection where it uses SSL first 
    8181                  (this is the default upon loading the module) 
    8282        SSL     = Net::SSL 
     
    116116                } 
    117117        else  { print "ERROR: $@\n"; exit; } 
    118     } else { 
     118    }  
     119        else { 
    119120        # assuming autodetection 
    120         eval "use Net::SSLeay";    # do we have SSL support? 
     121        eval "use Net::SSL"; 
    121122        if ( !$@ ) { 
    122             $LW_SSL_LIB   = 1; 
    123             $_SSL_LIBRARY = 'Net::SSLeay'; 
    124             Net::SSLeay::load_error_strings(); 
    125             Net::SSLeay::SSLeay_add_ssl_algorithms(); 
    126             Net::SSLeay::randomize(); 
    127         } else { 
    128             eval "use Net::SSL"; 
    129             if ( !$@ ) { 
    130123                $LW_SSL_LIB   = 2; 
    131124                $_SSL_LIBRARY = 'Net::SSL'; 
    132             } 
    133         } 
    134     } 
     125                } 
     126        else { 
     127        eval "use Net::SSLeay"; 
     128        if ( !$@ ) { 
     129                $LW_SSL_LIB   = 1; 
     130                $_SSL_LIBRARY = 'Net::SSLeay'; 
     131                Net::SSLeay::load_error_strings(); 
     132                Net::SSLeay::SSLeay_add_ssl_algorithms(); 
     133                Net::SSLeay::randomize(); 
     134                } 
     135                } 
     136        } 
    135137 
    136138return undef; 
Note: See TracChangeset for help on using the changeset viewer.