Skip to content

Commit

Permalink
use a little less memory
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 20, 2017
1 parent ac8ddde commit 19502a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Changes
@@ -1,5 +1,6 @@

7.44 2017-08-19
7.44 2017-08-20
- Improved Mojo::IOLoop::TLS to use a little less memory.

7.43 2017-08-18
- Improved Mojo::Base role support with the ability to rebless objects.
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/IOLoop/TLS.pm
Expand Up @@ -51,7 +51,7 @@ sub _expand {
weaken $self;
my $tls = {
SSL_ca_file => $args->{tls_ca}
&& -T $args->{tls_ca} ? $args->{tls_ca} : undef,
&& -T $args->{tls_ca} ? $args->{tls_ca} : \undef,
SSL_error_trap => sub { $self->_cleanup->emit(error => $_[1]) },
SSL_honor_cipher_order => 1,
SSL_startHandshake => 0
Expand All @@ -71,7 +71,6 @@ sub _expand {
else {
$tls->{SSL_hostname}
= IO::Socket::SSL->can_client_sni ? $args->{address} : '';
$tls->{SSL_verifycn_scheme} = $args->{tls_ca} ? 'http' : undef;
$tls->{SSL_verify_mode} //= $args->{tls_ca} ? 0x01 : 0x00;
$tls->{SSL_verifycn_name} = $args->{address};
}
Expand Down

0 comments on commit 19502a0

Please sign in to comment.