Recognizing user in PerlFixupHandler

2018-03-12 Thread Jan Kasprzak
Hello, mod_perl users, I have a cookies-based authentication similar to Apache2::AuthCookie, and I have problem with setting up authentication with recognizing users in PerlFixupHandler also for URLs accessible even without authentication (similar to what Apache2::AuthCookie->recognize_use

Re: suggestions for perl as web development language [EXT]

2020-08-04 Thread Jan Kasprzak
Hello, James Smith wrote: : Perl is a great solution for web development. : : Others will disagree but the best way I still believe is using mod_perl : - but only if you use it's full power - and you probably need a special : sort of mind set to use - but that can be said for any language

Perl-based event server?

2021-05-19 Thread Jan Kasprzak
Hello, mod_perl users, TL;DR: which Perl-based solution would you recommend for serving long-term HTTP connections? We use mod_perl for our project, and we would like to add a component which needs long-term connections (think websockets or server-side-events https://deve

Re: mod_dav question

2022-01-11 Thread Jan Kasprzak
Yamada-san, Yamadaえりな wrote: : We are using mod_dav with apache2.4 to manage files via webdav protocol. : We want to limit file uploading based on the user's total storage. : For instance, if a user has his storage size reached to the max limit, he : can't upload files anymore. : Do you ha

Re: Problem with my code for passing block

2022-01-11 Thread Jan Kasprzak
demerphq wrote: : On Tue, 11 Jan 2022 at 10:18, Yamadaえりな wrote: : : > So, I would like to ask another question: : > Is it safe to pass function reference to the caller (mostly it's the : > method instantized from a class) in mod_perl development env? : > Or should I avoid using this style? : > :

mod_remoteip and Apache2::Connection

2024-05-05 Thread Jan Kasprzak
Hello, mod_perl users! I am trying to use Apache 2.4 + mod_perl behind a reverse proxy, which sets the X-Forwarded-For header. Apache itself supports this via mod_remoteip, which mostly works[1]. However, from the mod_perl point of view, the remote address is set only in $ENV{REMOTE_ADDR},

Custom PerlResponseHandler for a subrequest

2024-06-04 Thread Jan Kasprzak
Hello, I am trying to do something like this in PerlAuthenHandler, and it mostly works: sub auth_handler { my ($r) = @_; ... if ($cond) { $r->set_handlers(PerlResponseHandler => sub { my ($r) = @_; $r-

Re: Custom PerlResponseHandler for a subrequest

2024-06-04 Thread Jan Kasprzak
Hi Jan, Jan Pazdziora wrote: > On Tue, Jun 04, 2024 at 03:35:06PM +0200, Jan Kasprzak wrote: > > Hello, > > > > I am trying to do something like this in PerlAuthenHandler, > > and it mostly works: > > > > sub auth_handler { > >

Re: reasons for modperl declines?

2024-08-07 Thread Jan Kasprzak
Hi, Jeff, I work on a project with more than 1M lines of code in Perl (and mod_perl). My thoughts: Jeff Pang wrote: > For me I run several apps on mod_perl, including a AI prediction app > which costs heavy CPU/ram. These apps run for long time and behave > just fine. > > Today it sounds