Re: [Klara FreeBSD #2159] Second bug in our web server: mod_perl2 Apache2::Upload upload method silently dies

2025-07-22 Thread Randolf Richardson via modperl
comes out soon. I have done worse things in the past. > > > > > > I hope this makes sense. > > > > > > - Alex > > > > > > > > > On 7/18/25 19:31, Alex Aminoff wrote: > > > > > > I did this, and I believe it has fixed t

Re: [Klara FreeBSD #2159] Second bug in our web server: mod_perl2 Apache2::Upload upload method silently dies

2025-07-22 Thread Alex Aminoff
18/25 19:31, Alex Aminoff wrote: > > I did this, and I believe it has fixed the problem! > > You can test this here > > http://backdev.nber.org/uploadtest > > What I did was apply your patch in /usr/ports on our diskless root > FreeBSD-14.2-root-202507, after running mak

Re: [Klara FreeBSD #2159] Second bug in our web server: mod_perl2 Apache2::Upload upload method silently dies

2025-07-22 Thread Randolf Richardson via modperl
gt; > I did this, and I believe it has fixed the problem! > > You can test this here > > http://backdev.nber.org/uploadtest > > What I did was apply your patch in /usr/ports on our diskless root > FreeBSD-14.2-root-202507, after running make extract in www/libapreq2. Th

Re: Apache2::Upload ->upload method dies silently if any file field is empty

2025-07-21 Thread Alex Aminoff
On 7/18/25 13:35, Randolf Richardson via modperl wrote: On Jul 17, 2025, at 1:32PM, Alex Aminoff wrote: I have written up a description and replication code here: http://back.nber.org/sys-admin/apache2_upload_bug.html Is this something anyone else has seen? Hi, Alex. Yes, this is a known p

Re: Apache2::Upload ->upload method dies silently if any file field is empty

2025-07-18 Thread Randolf Richardson via modperl
> On Jul 17, 2025, at 1:32PM, Alex Aminoff wrote: > > I have written up a description and replication code here: > > > > http://back.nber.org/sys-admin/apache2_upload_bug.html > > > > Is this something anyone else has seen? > > Hi, Alex. Yes, this is a known problem that has been discussed on the

Re: Apache2::Upload ->upload method dies silently if any file field is empty

2025-07-18 Thread Vincent Veyron
On Thu, 17 Jul 2025 13:31:29 -0400 Alex Aminoff wrote: Hi Alex, > > I am seeing some very suprising behavior with calling ->upload on a > Apache2::Request object (with use Apache2::Upload). See this thread about the problem and how to solve it : https://lists.apache.org/thread/1wno98spl8gzf

Re: Apache2::Upload ->upload method dies silently if any file field is empty

2025-07-18 Thread Edward J. Sabol
On Jul 17, 2025, at 1:32 PM, Alex Aminoff wrote: > I have written up a description and replication code here: > > http://back.nber.org/sys-admin/apache2_upload_bug.html > > Is this something anyone else has seen? Hi, Alex. Yes, this is a known problem that has been discussed on the mod_perl an

Re: Apache2::Upload ->upload method dies silently if any file field is empty

2025-07-17 Thread Randolf Richardson via modperl
I've been down this road. If wrapping $r->upload() in an eval block doesn't solve the problem, it's likely that you need to upgrade libapreq2 to v2.18 (or newer): https://www.inter-corporate.com/kb/internal-apreq-error.pl If your Linux distribution doesn't include

Re: Return a 200 0K status and send the content of the request later

2025-05-16 Thread Vincent Veyron
Ha! it turns out I had forgotten to deactivate a Filter. It works great. I put it online, you can see it in action if you're curious. 1 - Use the login form in the demo section of the site in my sig 2 - navigate to https://legalcase.libremen.com/base/export_raw_data Thanks to Ed and Mithun fo

Re: Return a 200 0K status and send the content of the request later

2025-05-15 Thread Vincent Veyron
On Fri, 16 May 2025 01:11:48 +0200 Vincent Veyron wrote: > > I have a working prototype > Well, scratch that, it does work on a slow spinning disk, not on SSD :-\ Also, I'm getting something strange when testing for the presence of a file before removing it, as in : if ( -e $r->docume

Re: Return a 200 0K status and send the content of the request later

2025-05-15 Thread Vincent Veyron
On Tue, 13 May 2025 21:45:35 -0500 Mithun Bhattacharya wrote: Hi Mithun, > You should do the flush after the ContentType - content_type is header the > H3 is body of the response or at least it should be. > I can do that, but then I need to flush again after $r->print('Building tar file') ;

Re: Return a 200 0K status and send the content of the request later

2025-05-15 Thread Vincent Veyron
On Tue, 13 May 2025 22:57:05 -0400 Ed Sabol wrote: Hi Ed, > > Well, the standard way of doing that is you fork a child process to run the > system command while the parent process loops and prints a period (or > whatever you prefer) every 1 second (make sure you call flush() after > printing

Re: Return a 200 0K status and send the content of the request later

2025-05-13 Thread Ed Sabol
se, 'postgres') ; > >system(@args) == 0 or warn "system @args failed: $!" ; > > then waits for the resulting file before proceeding to compress and tar it, > also with a system() call. > > How can I wrap this in a loop that re-sends the 'Building t

Re: Return a 200 0K status and send the content of the request later

2025-05-13 Thread Mithun Bhattacharya
ort_raw_data.sql', '-v', > 'id_client=' . $r->pnotes('session')->{id_client}, '-v', 'database=' . > $database, 'postgres') ; > > system(@args) == 0 or warn "system @args failed: $!" ; > > then wa

Re: Apache2::Request and other modules

2025-05-13 Thread Mithun Bhattacharya
Apache2::Request is the base and you would at least need that to consume a request. The rest are optional and expand on what $r provides. You include them only if you are using something they are providing. On Tue, May 13, 2025, 8:37 PM wrote: > Hello > > In my modperl handler, I only use Apach

Re: Return a 200 0K status and send the content of the request later

2025-05-13 Thread Vincent Veyron
x27;, '/path/to/script/to/export_raw_data.sql', '-v', 'id_client=' . $r->pnotes('session')->{id_client}, '-v', 'database=' . $database, 'postgres') ; system(@args) == 0 or warn "system @args failed: $!" ; the

Re: Apache server returns early before process is complete

2025-05-13 Thread Ian B
I'm wondering if you were to do an strace -s 2048 -f -p on the dev server where there's less happening if you may be able to spot something going on (-f is follow children -s size of line output before truncated).

Re: Return a 200 0K status and send the content of the request later

2025-05-13 Thread Mithun Bhattacharya
Http return codes are relevant only for request with fast response time. It helps the requestor get a quick status 200 is all good, 3xx something temporary, 4xx client has made some mistakes and 5xx server faulted. Unfortunately this design doesn't map well to requests which take significant execu

Re: Send a 200 0K return status without the content

2025-05-13 Thread Vincent Veyron
Sorry, I did not mean to hijack this thread, re-posting. On Tue, 13 May 2025 19:37:07 +0200 Vincent Veyron wrote: > On Wed, 23 Apr 2025 15:06:44 -0500 > Mithun Bhattacharya wrote: > > Hi Mithun, > > In a recent thread, you wrote : > > > > > mod_perl

Re: Apache server returns early before process is complete

2025-05-13 Thread Joseph He
have to be sure that the very first >> client which sent the very first request also waits long enough to let the >> application server make severals tries, therefore n * timeout. >> >> Best wishes >> Andreas >> >> >> Am 13.05.2025 um 16:46 schrieb Joseph

Re: Apache server returns early before process is complete

2025-05-13 Thread Andreas Mock
severals tries, therefore n * timeout. Best wishes Andreas Am 13.05.2025 um 16:46 schrieb Joseph He: Many thanks to you all. I am still trying to figure out the issue. Let me re-explain the problem I experienced with some details. The environment is Ubuntu 22.04, A

Re: Apache server returns early before process is complete

2025-05-13 Thread Joseph He
have to be sure that the very first > client which sent the very first request also waits long enough to let the > application server make severals tries, therefore n * timeout. > > Best wishes > Andreas > > > Am 13.05.2025 um 16:46 schrieb Joseph He: > > Many thanks t

Re: Apache server returns early before process is complete

2025-05-13 Thread Andreas Mock
Joseph He: Many thanks to you all. I am still trying to figure out the issue. Let me re-explain the problem I experienced with some details. The environment is Ubuntu 22.04, Apache2, ModPerl. I run a Http::request with LWP::UserAgent, the server receives the request and starts to process

Re: Apache server returns early before process is complete

2025-05-13 Thread Joseph He
Many thanks to you all. I am still trying to figure out the issue. Let me re-explain the problem I experienced with some details. The environment is Ubuntu 22.04, Apache2, ModPerl. I run a Http::request with LWP::UserAgent, the server receives the request and starts to process it. But it takes

Re: Apache server returns early before process is complete

2025-04-23 Thread Mithun Bhattacharya
Okay agreed that is a valid time out basically it is saying that a client has established tcp/ip connection but has not put its request either a get put or a post On Wed, Apr 23, 2025, 3:38 PM Joseph He wrote: > On Apache2 doc, I found this. How does this timeout work? It looks like it > can onl

Re: Apache server returns early before process is complete

2025-04-23 Thread Joseph He
On Apache2 doc, I found this. How does this timeout work? It looks like it can only wait for 300 seconds before failing a request. https://httpd.apache.org/docs/2.0/mod/core.html#timeout Description: Amount of time the server

Re: Apache server returns early before process is complete

2025-04-23 Thread Mithun Bhattacharya
You configure timeout at the client side. Apache is at the server side. Server doesn't have a concept of time it could take days to run and not care. mod_perl code is where you are sending the http return status to make sure the client doesn't timeout waiting for the server to respond. On Wed, Ap

Re: Apache server returns early before process is complete

2025-04-23 Thread Joseph He
Thanks, all. Is that Apache timeout controlled by its configuration "Timeout"? I don't think it has anything to do with modPerl. Am I missing something? Thanks. On Wed, Apr 23, 2025 at 1:41 PM Mithun Bhattacharya wrote: > Timeout happens because of how we handle the request. Timeout is basically

Re: Apache server returns early before process is complete

2025-04-23 Thread Mithun Bhattacharya
Timeout happens because of how we handle the request. Timeout is basically no response came back. Why that happens is because we think we want to have a correct response. Unfortunately for long running requests the correct response shouldn't be via http response code or we face situations like this

Re: Apache server returns early before process is complete

2025-04-23 Thread Andreas Mock
Hi Joseph, your description is very vague, so can only answer on some assumptions: It sounds like a timeout is fired somewhere. Best advice in these situations: Log as many steps as you can. Keep your eyes open on TCP/IP and higher level timeouts. Declare only ONE instance responsible for a

Re: Image::Imlib2 error

2025-03-30 Thread Ruben Safir
On 3/30/25 8:04 AM, Ian B wrote: > Couple of things you could try, modify the Image::Imlib2 module, to have > sub dl_load_flags { 0x102 } just before the "boostrap" line... > so it would look like (remember to save original) > .. > $VERSION = '2.03'; > sub dl_load_flags { 0x102 }; > bootstrap

Re: Image::Imlib2 error

2025-03-30 Thread Ian B
Couple of things you could try, modify the Image::Imlib2 module, to have sub dl_load_flags { 0x102 } just before the "boostrap" line... so it would look like (remember to save original) .. $VERSION = '2.03'; sub dl_load_flags { 0x102 }; bootstrap Image::Imlib2 $VERSION; ... or you could try ex

Re: Image::Imlib2 error

2025-03-30 Thread Ruben Safir
On 3/29/25 10:59 PM, Ruben Safir wrote: > I hacked the build file so it will compile but the darn xs > packages are still not working and I have zero idea how to fix this at > this point. > > I have 40 years of photographs and images on that webserver made > inaccessible by fidiggty coders who ha

Re: Image::Imlib2 error

2025-03-29 Thread Ruben Safir
I hacked the build file so it will compile but the darn xs packages are still not working and I have zero idea how to fix this at this point. I have 40 years of photographs and images on that webserver made inaccessible by fidiggty coders who had security issue and no added functionality. They ar

Re: Image::Imlib2 error

2025-03-29 Thread Ruben Safir
I fixed the Images::Imlib2 package so it will at least compile buy hard coding the pkg-config file instead of the removed imlib2-config But it is still not finding the image modules that are used by Image::Imlib2->load() I'm not really sure where that is even being inherited from because I never

Re: Image::Imlib2 error

2025-03-29 Thread Ruben Safir
On 3/29/25 2:45 PM, Ian B wrote: > Make sure you install the Imlib2 headers, something like Imlib2-dev > package. the is no such package :( -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Saf

Re: Image::Imlib2 error

2025-03-29 Thread Ian B
Make sure you install the Imlib2 headers, something like Imlib2-dev package. Perl will probably use that to compile its own .so file. On Sat, Mar 29, 2025 at 6:33 PM Ruben Safir wrote: > On 3/29/25 3:34 AM, Ian B wrote: > > Try nm -D rather than nm > > > > nm -D /usr/lib/imlib2/loaders/jpeg.

Re: Image::Imlib2 error

2025-03-29 Thread Ruben Safir
On 3/29/25 3:34 AM, Ian B wrote: > Try nm -D rather than nm > > nm -D /usr/lib/imlib2/loaders/jpeg.so | grep ProgressRows > > I'd be tempted to ask about this question on StackOverflow, there's some > very knowledgeable folk on there, who may have some better things to > check...a part of me

Re: Image::Imlib2 error

2025-03-29 Thread Ruben Safir
On 3/29/25 3:34 AM, Ian B wrote: > Try nm -D rather than nm > > nm -D /usr/lib/imlib2/loaders/jpeg.so | grep ProgressRows > > I'd be tempted to ask about this question on StackOverflow, there's some > very knowledgeable folk on there, who may have some better things to > check...a part of me

Re: Image::Imlib2 error

2025-03-29 Thread Ian B
Try nm -D rather than nm nm -D /usr/lib/imlib2/loaders/jpeg.so | grep ProgressRows I'd be tempted to ask about this question on StackOverflow, there's some very knowledgeable folk on there, who may have some better things to check...a part of me wants to suggest reinstalling Perls Image::Imli

Re: Image::Imlib2 error

2025-03-28 Thread Ruben Safir
[ruben@www3 ~]$ strings /usr/lib/imlib2/loaders/zlib.so|grep __imlib_FindBestLoader __imlib_FindBestLoader On Fri, Mar 28, 2025 at 10:44:52PM +, Ian B wrote: > Sorry, had missed some of those errors earlier...so looking at these... > > 4304: /usr/lib/imlib2/loaders/jpeg.so: error: symbo

Re: Image::Imlib2 error

2025-03-28 Thread Ruben Safir
On Fri, Mar 28, 2025 at 10:44:52PM +, Ian B wrote: > Sorry, had missed some of those errors earlier...so looking at these... > > 4304: /usr/lib/imlib2/loaders/jpeg.so: error: symbol lookup > error: undefined symbol: __imlib_LoadProgressRows (fatal) > 4304: /usr/lib/imlib2/loaders/zli

Re: Image::Imlib2 error

2025-03-28 Thread Ian B
Sorry, had missed some of those errors earlier...so looking at these... 4304: /usr/lib/imlib2/loaders/jpeg.so: error: symbol lookup error: undefined symbol: __imlib_LoadProgressRows (fatal) 4304: /usr/lib/imlib2/loaders/zlib.so: error: symbol lookup error: undefined symbol: __imlib_FindB

Re: Image::Imlib2 error

2025-03-28 Thread Ruben Safir
On 3/28/25 1:01 PM, Ian B wrote: > So, a few bits to check(what distro is this on?) > it is on artix > do an 'updatedb' as root/sudo, to rebuild your file search db find? pacman -Ss imlib2 world/feh 3.10.3-1 [installed] Fast and light imlib2-based image viewer world/imlib2 1.12.4-1 [ins

Re: Image::Imlib2 error

2025-03-28 Thread Ian B
So, a few bits to check(what distro is this on?) do an 'updatedb' as root/sudo, to rebuild your file search db locate loaders | grep imlib2 Does it show the jpeg.so file ? Eg /usr/lib64/imlib2/loaders/jpeg.so If you do ldd /usr/lib64/imlib2/loaders/jpeg.so (or whatever from previous output)

Re: Image::Imlib2 error

2025-03-28 Thread Ruben Safir
On 3/28/25 10:46 AM, Ian B wrote: > and maybe just check the obvious, if you do "file > /home/ruben/20130303_133505.jpg" does it say its a JPEG ? (assuming on > Linux) > yes -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in

Re: Image::Imlib2 error

2025-03-28 Thread Ruben Safir
ry does. It generates cached images on the fly until right now. It was probably installed via cpam and I re-installed the modules and the dependencies via cpam. that hasn't worked. > > > > It might have been either.. :( > > > > I instaled a custom apache set up o

Re: Image::Imlib2 error

2025-03-28 Thread Ian B
For what it's worth, we got a bit tired with interfacing Perl with ImageMagik as it was always precarious, and just ended up calling the command line via Perl to save/convert files. On Fri, Mar 28, 2025 at 3:10 PM Ruben Safir wrote: > On 3/28/25 10:42 AM, Ian B wrote: > > Now, was Imlib2 custom

Re: Image::Imlib2 error

2025-03-28 Thread Ruben Safir
On 3/28/25 10:42 AM, Ian B wrote: > Now, was Imlib2 custom compiled or installed as part of your o.s packages ? > I'm guessing it's definitely installed, but worth checking... It might have been either.. :( I instaled a custom apache set up on top of a normal Artix (Arch without systemd) build t

Re: Image::Imlib2 error

2025-03-28 Thread Ian B
and maybe just check the obvious, if you do "file /home/ruben/20130303_133505.jpg" does it say its a JPEG ? (assuming on Linux)

Re: Image::Imlib2 error

2025-03-28 Thread Ian B
Not sure of the answer, but just to try and put a couple of pieces together...the require DynaLoader ; @ISA = qw(Exporter DynaLoader); bootstrap Image::Imlib2 $VERSION; lines will probably do this, and hence it will look and find the .xs file you've fo

Re: Modperl with threads

2024-12-19 Thread Ed Sabol
On Dec 19, 2024, at 5:10 PM, Mithun Bhattacharya wrote: > Has DBI itself become thread safe or is it still a great area ? AFAIK, as long as each thread instantiates it's own handle, it should work. I don't believe you can share the same DBI handle between multiple threads. Regards, Ed

Re: Modperl with threads

2024-12-19 Thread Mithun Bhattacharya
I think the bigger problem is that not all of the Perl modules are thread safe. Has DBI itself become thread safe or is it still a great area ? On Thu, Dec 19, 2024, 3:46 PM Ed Sabol wrote: > On Dec 19, 2024, at 12:47 PM, Bitfox wrote: > > Mod_perl doesn’t support threads, am I right? > > If y

Re: Modperl with threads

2024-12-19 Thread Ed Sabol
On Dec 19, 2024, at 12:47 PM, Bitfox wrote: > Mod_perl doesn’t support threads, am I right? If you mean mod_perl with ithreads and using the Apache mpm_event module, then that's incorrect, I think. Search the archives of this mailing list for posts by Joe Schaefer for some clues as to how. I h

Re: Modperl with threads

2024-12-19 Thread Ruben Safir
it has had thread for many years to my knowledge On Fri, Dec 20, 2024 at 01:47:12AM +0800, Bitfox wrote: > Mod_perl doesn’t support threads, am I right? > This may limit its capabilities from my view. > Any alternative stack? > > Thanks -- So many immigrant groups have swept through our town

Re: Resolved: Apache2::Upload v2.17 clobbering remaining CGI parameters + installation notes

2024-11-27 Thread Randolf Richardson
Vincent Veyron > To: rand...@modperl.pl > Subject: Re: Resolved: Apache2::Upload v2.17 >clobbering remaining CGI > parameters + installation notes > > On Thu, 11 Jan 2024 01:00:26 -0800 > "Randolf Richardson" wrote: > > >

Re: Resolved: Apache2::Upload v2.17 clobbering remaining CGI parameters + installation notes

2024-11-27 Thread Vincent Veyron
On Thu, 11 Jan 2024 01:00:26 -0800 "Randolf Richardson" wrote: > I also attached my installation notes with the hopes that this may > be helpful to anyone else installing this upgrade on Debian 12.4 (or > another similar version of Linux). Hi, I'm reviving this thread to send Randolf a

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-11-22 Thread Randolf Richardson
I've been away for a while, so I'm sorry if this reply is coming too late, but if not then hopefully it helps... Can you try changing the call to prepare() to prepare_cached() and try again? Also, I noticed that in the startup.pl script you included earlier that there's no

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-12 Thread Tim Lank
Thanks Perrin. The "end user" is getting the following: HTTP/1.1 500 Internal Server Error Date: Tue, 08 Oct 2024 20:17:24 GMT Server: Apache/2.4.57 (AlmaLinux) OpenSSL/3.0.7 mod_perl/2.0.12 Perl/v5.32.1 Content-Length: 333 Connection: close Content-Type: text/html; charset=iso-8859-1 Software e

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-10 Thread Perrin Harkins
DBI is supposed to install the driver when you call connect(), although that does mean any code loaded there isn't shared in memory. My question would be, did you get any actual failed responses in your load test, or just these error log messages? If all the requests succeeded, then I would suspec

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-10 Thread Tim Lank
Thanks Ed. I'll add it and see if it helps. My load testing phase is already completed, but I may get a chance to retest next year. On Thu, Oct 10, 2024 at 6:32 AM Edward J. Sabol wrote: > On Oct 7, 2024, at 5:55 PM, Tim Lank wrote: > > I have the following in my startup.pl: > > use CGI qw(:a

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-10 Thread Edward J. Sabol
On Oct 7, 2024, at 5:55 PM, Tim Lank wrote:I have the following in my startup.pl:use CGI qw(:all);use CGI::Carp 'fatalsToBrowser', 'carpout';use List::Util 'shuffle';CGI->compile(':all');Apache::DBI->connect_on_init  ("DBI:mysql:holidayshop",I don't know if it will help or not, but, before the abo

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-10 Thread Tim Lank
Nothing glaring turned up in the logs when DBI debugs were turned on. Along the lines of what Mithun conveyed, I did add this to the /etc/my.cnf and it has seemed to cut the amount of errors in half or less from 6-8 down to 2 or 3 per run. [mysqld] default-authentication-plugin=mysql_native_passw

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-07 Thread Tim Lank
Good point. I’ll try to ratchet up the debugs on those to see if anything pops out On Mon, Oct 7, 2024 at 6:58 PM Adam Prime wrote: > You may need to dig into the code in DBI, or DBD::mysql to understand what > is happening (or not happening) in the rare occasions that this occurs. > Without th

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-07 Thread Adam Prime
You may need to dig into the code in DBI, or DBD::mysql to understand what is happening (or not happening) in the rare occasions that this occurs. Without the ability to consistently reproduce the issue all we can really do is look at the code and make educated guesses. Adam On Oct 7, 2024, at

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-07 Thread Tim Lank
it doesn't seem to explain why it would work 99+% of the time though. I don't think it applies to my situation exactlly On Mon, Oct 7, 2024 at 6:31 PM Mithun Bhattacharya wrote: > Maybe this helps ? > > > https://php.watch/articles/fix-php-mysql-84-mysql_native_password-not-loaded > > On Mon, O

Re: Apache::DBI - consistently encountering about a .00667% error rate

2024-10-07 Thread Mithun Bhattacharya
Maybe this helps ? https://php.watch/articles/fix-php-mysql-84-mysql_native_password-not-loaded On Mon, Oct 7, 2024, 4:56 PM Tim Lank wrote: > Apache::DBI experts: > > I have the following in my startup.pl: > > use CGI qw(:all); > use CGI::Carp 'fatalsToBrowser', 'carpout'; > use List::Util 'sh

Re: reasons for modperl declines? ... pagination

2024-08-09 Thread Guido Brugnara
I apologize that we are using this mail-list dedicated to mod_perl. Normally the page to be returned to the frontend for display has a few rows (tens) and therefore perform Join with a table of keys or use IN (...) m but also key = X OR key = Y OR ... makes little difference. In my case the rec

Re: reasons for modperl declines? ... pagination

2024-08-09 Thread Mithun Bhattacharya
True - it will not return enough results if it is a sparse matrix. I might be biased because in my work it is ok to give less results if it is significantly faster. If exact numbers are required and the count is significantly higher then I would suggest keeping the select on primary keys but switc

Re: reasons for modperl declines? ... pagination

2024-08-09 Thread Mithun Bhattacharya
First one is expensive and s cond is inefficient. Instead get the max and min and split the numbers into appropriate batch. So if it is 345 to 25636 then 345 - 1345, 1346-2345 and so on and so forth. Why is the second querry inefficient because the IN clause is much slower than doing a between on t

Re: *** SPAM *** Re: reasons for modperl declines? ... pagination

2024-08-09 Thread Vincent Veyron
On Thu, 8 Aug 2024 16:21:09 +0200 Guido Brugnara wrote: > > I evaluate the query but returning only Primary Keys [*] using > OFFSET/LIMIT limiting to a multiple of rows to display but not too > large, which I save in cache. Thanks for the info. How do you do the caching? -- vv.lists

Re: reasons for modperl declines?

2024-08-08 Thread Jeff Pang
And we have video servers which have access control methods by modperl. only authenticated users have access permission to videos which are just static files. the ip white/black lists are set in apache's configuration file. even ops can update the lists. This is a special business scenario. Vi

Re: reasons for modperl declines?

2024-08-08 Thread Mithun Bhattacharya
Oh I am referring to twenty years ago when if you wanted to maintain your sanity you don't let Cpanel touch your regular Apache configuration, let alone one with mod_perl configured. On Thu, Aug 8, 2024, 4:49 PM Jeff Pang wrote: > In now days configuration is not a hard job if you like to learn.

Re: reasons for modperl declines?

2024-08-08 Thread Jeff Pang
On 2024-08-08 22:51, Mithun Bhattacharya wrote: So I am a mod_perl user for about 25 years now - pretty much I started with perl and mod_perl together :) Looking at the conversation I can see it is diverging into two parts - one what to do with mod_perl and in general concerns with Perl. Yes

Re: reasons for modperl declines?

2024-08-08 Thread Mithun Bhattacharya
So I am a mod_perl user for about 25 years now - pretty much I started with perl and mod_perl together :) Looking at the conversation I can see it is diverging into two parts - one what to do with mod_perl and in general concerns with Perl. Yes we have alternatives to mod_perl and you should defi

Re: reasons for modperl declines? ... pagination

2024-08-08 Thread Guido Brugnara
Il 08/08/24 15:35, Vincent Veyron ha scritto: On Thu, 8 Aug 2024 13:11:18 +0200 Guido Brugnara wrote: Hi Guido, Special feature of the project is the use of HTML::Mason also for SQL code generation templates for efficient paging of very large recordset (even millions of rows). Excuse me for

Re: *** SPAM *** Re: reasons for modperl declines?

2024-08-08 Thread Vincent Veyron
On Thu, 8 Aug 2024 13:11:18 +0200 Guido Brugnara wrote: Hi Guido, > > Special feature of the project is the use of HTML::Mason also for SQL > code generation templates for efficient paging of very large recordset > (even millions of rows). > Excuse me for hijacking this thread, but I'm curi

Re: reasons for modperl declines?

2024-08-08 Thread Guido Brugnara
Il 08/08/24 12:48, Jeff Pang ha scritto: On 2024-08-08 16:57, Guido Brugnara wrote: Hi! I work on a project using e framework with ~300K lines of code in Perl (and mod_perl used with HTML::Mason). 300K is so huge a system. is it ERP/CRM related system (b/c I know some other ERP system use

Re: reasons for modperl declines?

2024-08-08 Thread Jeff Pang
On 2024-08-08 16:57, Guido Brugnara wrote: Hi! I work on a project using e framework with ~300K lines of code in Perl (and mod_perl used with HTML::Mason). 300K is so huge a system. is it ERP/CRM related system (b/c I know some other ERP system uses perl/modperl)? it sounds wonderful. --

Re: reasons for modperl declines?

2024-08-08 Thread Jeff Pang
On 2024-08-08 07:26, Jan Kasprzak wrote: 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

Re: reasons for modperl declines?

2024-08-08 Thread Guido Brugnara
Hi! I work on a project using e framework with ~300K lines of code in Perl (and mod_perl used with HTML::Mason). My applications run in an industrial environment where stability and security are essential, and in many years on the stack (apache, mod_perl, HTML::Mason & Perl) I have never had

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

Re: cross-site scripting my VirtualHosts

2024-08-06 Thread Ed Sabol
On Aug 6, 2024, at 7:59 PM, Vincent Veyron wrote: > Not sure if it's Apache or mod_perl related, but I thought I'd mention it. I would call that an Apache (mis)configuration issue, frankly. I don't think it has anything to do with mod_perl specifically. Certainly, it's a good thing to warn peop

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 { > > my ($r) = @_; > > ... > > if ($cond) { > >

Re: Custom PerlResponseHandler for a subrequest

2024-06-04 Thread Jan Pazdziora
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 { > my ($r) = @_; > ... > if ($cond) { > $r->set_handlers(PerlResponseHandler =>

RE: stdout from scripts goes to apache logs

2024-05-13 Thread David Cook via modperl
on't know if I'd choose mod_perl for a new project, but I still use it for some older ones and it's pretty good. David Cook Senior Software Engineer Prosentient Systems -Original Message- From: Steven Haigh via modperl Sent: Tuesday, 14 May 2024 2:45 PM To: modperl@perl.apach

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
if that buffering can be altered in IPC::Run as yet, but either way, it becomes a less-optimal result to just blat the entire traceroute to the screen at once. It can take quite a while for a traceroute to complete if theres 20+ hops that don't respond - which means you get no output at

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Ed Sabol
rg/pod/IPC::Run (2) Re-jigger the file descriptors as shown here: https://stackoverflow.com/questions/2097247/ipcopen3-fails-running-under-apache/24311232#24311232 Hope this helps, Ed

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
The apache config for modperl is as follows: ## Load mod_perl LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlOptions +Parent PerlSwitches -Mlib=/var/www/includes DirectoryIndex index.pl index.html #AddHa

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Joseph He
Steven, how do you put your script under the mod-perl environment? What is your httpd.conf file? Thx. On Mon, May 13, 2024 at 10:00 PM Steven Haigh via modperl < modperl@perl.apache.org> wrote: > I wonder if perhaps I haven't been clear in the problem. > > In the provided code example: > m

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
I wonder if perhaps I haven't been clear in the problem. In the provided code example: my $cmd = "/bin/stdbuf"; my @args = qw@ -o1 -e1 /usr/bin/speedtest-cli@; print '';<-- appears in the HTML output. my $pid = open3(0, \*READER, 0, $cmd, @args); while ( my $output =

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Joseph He
Steven, you need to use those mod-perl libraries to handle the web request and to generate the response. https://perl.apache.org/docs/2.0/user/intro/start_fast.html Scroll down to the bottom, you can see how to output the content. Cheers, Joseph On Mon, May 13, 2024 at 9:35 PM Steven Haigh via

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
That being said, is there a way to output to the web page in this scenario? On 14/5/24 12:15, Joseph He wrote: CGI script runs on its own process. mod-perl basically wraps CGI script into apache process, that is why its output is automatically going to Apache log. On Mon, May 13, 2024 at 1:53

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Joseph He
CGI script runs on its own process. mod-perl basically wraps CGI script into apache process, that is why its output is automatically going to Apache log. On Mon, May 13, 2024 at 1:53 AM Steven Haigh via modperl < modperl@perl.apache.org> wrote: > Hi all, > > I'm playing around with mod_perl on ap

Re: Re: stdout from scripts goes to apache logs

2024-05-13 Thread Vincent Veyron
Hi Steven, I don't work with registry scripts, so can't help with that, but I thought I'd mention a change I noticed in the way Apache2 handles STDERR output : it stopped obeying the ErrorLog configuration directives that I use for the few web sites I maintain. It now sends error messages to th

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Steven Haigh via modperl
Hi Ian, You're right - I did actually copy just one of the iterations I've tried of apache config. The parts of httpd.conf that I've added are: ## Load mod_perl LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlOptions +

Re: stdout from scripts goes to apache logs

2024-05-13 Thread Ian B
Not an expert here, so someone I'm sure will correct me if wrong! Normally I'd expect an actual PerlHandler or similar included, eg PerlHandler ModPerl::Registry or PerlHandler SomeLib::SomePAckage type thing... (this would be as well as the Set/AddHandler line) Kind regards, On Mon, May 13,

Re: mod_remoteip and Apache2::Connection

2024-05-06 Thread Guido Brugnara
I'm sorry, had not read carefully. mod_remoteipmodifies the environment variables, so I can imagine that the get_remote_host method keeps pointing to the Proxy server address If you can't change the calls with that method, you can try to capture those calls and replace the value. In the pas

Apt upgrade on Debian re-links my libapreq2.so.3

2024-03-17 Thread Vincent Veyron
Hi, I renamed libapreq2.so.3.8.1 which came with the Debian package libapache2-mod-apreq2 (2.17, buggy as we know), I recompiled libapreq2.so.3.8.1 from svn trunk, and re-linked libapreq2.so.3 to it; the install script in trunk failed so I simply copied the file into the proper directory

Re: HTTPd Devs Considered Harmful to Apache2::Request users

2024-02-19 Thread Joe Schaefer
Simply put, 2.17 was a fraudulent release according to HTTPd's own rules for RM's. Under no circumstances may an RM unilaterally disable any component of the test suite without notifying the remainder of the PMC *on list*, because it is simply a deceptive practice for the rest of the group to have

  1   2   3   4   5   6   7   8   9   10   >