ryochin / p5-net-ftpserver

Net::FTPServer - A full-featured, secure, extensible and configurable Perl FTP server
http://search.cpan.org/~ryochin/Net-FTPServer/
GNU General Public License v2.0
4 stars 9 forks source link

Double default memory limit. Tame abort test. #5

Open jobegrabber opened 7 years ago

jobegrabber commented 7 years ago

With Linux 4.7 the value of RLIMIT_DATA is respected in calls to mmap

In FTPServer.pm the default limit is set to 16384 kilobytes. This commit doubles the default memory limit so t/170files.t does not fail anymore.

t/240abort.t originally constructs a huge string to simulate a big file, also breaking the RLIMIT_DATA set. This commit cuts down the string to a sane size not breaking the limit.