The Perl 6 Maven site runs on Bailador. I've just updated the Rakudo
underneath to 2017.01 and
it seemed to be working fine, but after a while it started crashing
with this error message:



Failed to open file /home/gabor/work/perl6maven-live.com/main.json:
too many open files
  in sub  at /home/gabor/work/Perl6-Maven/lib/Perl6/Maven.pm6
(Perl6::Maven) line 26
  in block  at 
/home/gabor/rakudo-star-2017.01/install/share/perl6/site/sources/A80D3EE41ED647143B6A367AAE142A5967A850D7
(Bailador::Route) line 57
  in method recurse-on-routes at
/home/gabor/rakudo-star-2017.01/install/share/perl6/site/sources/A80D3EE41ED647143B6A367AAE142A5967A850D7
(Bailador::Route) line 56
  in method dispatch at
/home/gabor/rakudo-star-2017.01/install/share/perl6/site/sources/06F75D046213CAD92B84F66E5F161C084878D0C3
(Bailador::App) line 84
  in block  at 
/home/gabor/rakudo-star-2017.01/install/share/perl6/site/sources/06F75D046213CAD92B84F66E5F161C084878D0C3
(Bailador::App) line 77

I've tried to reproduce the problem by running curl against the local
version of the application,
but so far, after a few hundred requests, I have not encountered the problem.


line 26 in the Maven.pm6 file looks like this:

    get '/atom' => sub {
        my $path = $.meta ~ request.path;
        return open($path).slurp-rest;
    }

I wonder if you have any idea what could be the source of this problem?

The full source of the application is here:
https://github.com/szabgab/Perl6-Maven/

regards
    Gabor

Reply via email to