Feersum::Runner(3pm)
β¨ Feersum::Runner β¨
okay bestie, welcome to Feersum::Runner β it's the feersum script core, aka the little engine that runs your feersum scripts π (this is from the Feersum::Runner(3pm) page, for the record, in case you're deep in man and needed a friend)
πΈ SYNOPSIS πΈ
use Feersum::Runner;
my $runner = Feersum::Runner->new(
listen => 'localhost:5000',
pre_fork => 0,
quiet => 1,
app_file => 'app.feersum',
);
$runner->run($feersum_app);
like. look at that. so clean, so demure π
π¦ DESCRIPTION π¦
so basically it's giving Plack::Runner, except with far fewer options. that's the whole vibe. it does the same core job but it's not out here doing the most β it's lowkey, it's streamlined, and honestly? iconic for that. π
π METHODS π
π Feersum::Runner->new(%params)
gives you back a Feersum::Runner singleton β and hear me out, this is the important bit: the params you pass in are only applied on the first invocation. so if you call new again? yeah those params just get ignored, bestie. first one wins. periodt. π
here's what you can hand it:
listenβ listen on this TCP socket, inhost:portformat π«Άpre_forkβ fork this many worker processes. the fork runs immediately at startup, and then again after the app is loaded β aka inside therun()method. so it's a two-part situation, fr fr.keepaliveβ enable/disable http keepalive requests βread_timeoutβ set the read/keepalive timeout, in seconds β±οΈmax_connection_reqsβ set the max requests per connection when keepalive is in play.0is the default, and0means unlimited πquietβ don't be so noisy π (default: on)app_fileβ load this filename as a native feersum app π
π§ $runner->run($feersum_app)
run Feersum with the app code reference you specified. and bestie, read this twice: this is not a PSGI app β it's a native Feersum app. the way that matters π
β $runner->assign_request_handler($subref)
this one's for the sub-classes to override β it assigns an app handler (think Plack::Handler::Feersum, that whole crowd π
). by default, it assigns a Feersum-native handler β and to be super clear, that is not a PSGI handler. no cap.
π $runner->quit()
kicks off a graceful shutdown π¦. and plot twist: a signal handler for SIGQUIT will call this method for you β so like, she's already on it, you don't even have to ask π
π AUTHOR π
Jeremy Stashewsky, "stash@cpan.org" β thank you for your service, king π
π COPYRIGHT AND LICENSE π
Copyright (C) 2010 by Jeremy Stashewsky & Socialtext Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
and that's the whole page, bestie β perl v5.40.1, dated 2025-04-13, Feersum::Runner(3pm) π«Ά go run your scripts, you're gonna slay β¨π
π¦ where this page comes from
- debian trixie: feersum 1.505-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: feersum 1.505-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms