FastCGI is not compatible with Carp fatalsToBrowser?

I am developing a Perl script using FastCGI (using CGI::Fastand CGI::Carp 'fatalsToBrowser').
When my script compiles errors, it causes the browser to freeze. It seems that it fatalsToBrowserdoes not work as usual with regular CGI (just send compilation errors to the browser). How can I fix this?

+3
source share
2 answers

I am a supporter of CGI.pm. I would recommend avoiding the use of "fatalsToBrowser" in this case. Some Perl structures are over functions that do the same. For example, with CGI :: Application there is CGI :: Application :: Plugin :: DebugScreen . Other frameworks have something similar.

"Carp" "CGI:: Carp" , , , "carp" "carp", '. Carp CGI:: Carp.

+2

, , FastCGI -. CGI , , FastCGI () ( -) / . CGI:: Carp perl , , ( ), CGI:: Fast.pm.

, FCGI.pm( libfcgi), CGI, .

+3

Source: https://habr.com/ru/post/1793505/


All Articles