Subject: | memory leak in version 2.047 |
Date: | Wed, 1 Mar 2017 15:55:21 +0100 |
To: | bug-IO-Socket-SSL [...] rt.cpan.org |
From: | Andrzey <cholewiusz [...] gmail.com> |
Hi,
Memory leak with perl-5.24.1
uname -a
Linux b-gr-dev.v.l 3.2.50-vs2.3.2.16-beng #1 SMP Fri Aug 30 16:43:33
BST 2013 x86_64 GNU/Linux
$> perlbrew list
perl-5.22.1
* perl-5.24.1
$> perl -MIO::Socket::SSL -e 'print $IO::Socket::SSL::VERSION'
2.047
$> ps aux | grep perl | grep -v grep | grep HTTP
errno 9636 2.2 0.0 57252 12696 pts/109 S+ 13:59 0:00 perl
-MHTTP::Tiny -e $ua=HTTP::Tiny->new(); for(1..100){
$ua->get("https://sth-huge-page/"); print STDERR "."; }
FEW requests later:
ps aux | grep perl | grep -v grep | grep HTTP
errno 9636 0.3 0.0 58496 14064 pts/109 S+ 13:59 0:00 perl
-MHTTP::Tiny -e $ua=HTTP::Tiny->new(); for(1..100){
$ua->get("https://sth-huge-page/"); print STDERR "."; }
... and RSS still is growing.
The same with LWP::UserAgent.
When downgrade to version 2.027 ( used in perl-5.22.1 ) then memory don`t leak.
cpanm --reinstall IO-Socket-SSL-2.027.tar.gz
------
regards
Andrzej Cholewiusz