Re: how to improve throughput for long time running sessions

2020-01-08 Thread Wesley Peng
Any more details? regards on 2020/1/9 14:11, Mithun Bhattacharya wrote: You need to split the request handler and the request processor. Receive the request in mod_perl and then queue it into a separate application which does the actual heavy lifting.

Re: what's difference between HTTP_HOST and SERVER_NAME

2020-01-08 Thread Wesley Peng
Hi on 2020/1/9 14:14, Mithun Bhattacharya wrote: This is for PHP but it still applies. https://www.geeksforgeeks.org/what-is-the-difference-between-http_host-and-server_name-in-php/ This is good reference. Thanks.

Re: AW: Question on a rewrite rule

2020-01-08 Thread Wesley Peng
Hi on 2020/1/9 14:27, Andreas Mock wrote: You have to see in which virtualhost section this rule was put into. I'm pretty sure it's only in the http section. You are so right. they are put in plain HTTP section. So requets were coming with HTTP, they will be rewriten to HTTPS, which is in

AW: Question on a rewrite rule

2020-01-08 Thread Andreas Mock
You have to see in which virtualhost section this rule was put into. I'm pretty sure it's only in the http section. -Ursprüngliche Nachricht- Von: Wesley Peng Gesendet: Donnerstag, 9. Januar 2020 03:44 An: modperl@perl.apache.org Betreff: Question on a rewrite rule Hello After

Re: what's difference between HTTP_HOST and SERVER_NAME

2020-01-08 Thread Mithun Bhattacharya
This is for PHP but it still applies. https://www.geeksforgeeks.org/what-is-the-difference-between-http_host-and-server_name-in-php/ On Wed, Jan 8, 2020 at 8:39 PM Wesley Peng wrote: > Hello > > For HTTP headers, what's difference between HTTP_HOST and SERVER_NAME? > > I was long time confused

Re: how to improve throughput for long time running sessions

2020-01-08 Thread Mithun Bhattacharya
You need to split the request handler and the request processor. Receive the request in mod_perl and then queue it into a separate application which does the actual heavy lifting. On Wed, Jan 8, 2020 at 8:59 PM Wesley Peng wrote: > Hallo > > We are running LR[1] and GBDT[2] and similar

Re: DB connection pool management

2020-01-08 Thread Mithun Bhattacharya
Connection pooling is implemented in DBI and enabled on need basis and in Apache::DBI it is enabled by default. On Wed, Jan 8, 2020 at 9:04 PM Wesley Peng wrote: > Hallo > > Is there DB connection pool management library like JDBC for mod_perl? > I know there is Apache::DBI, but that seems not

Re: how to run regex calculation

2020-01-08 Thread Joseph He
I think $str =~ /(\d+)\s(\d+)\s(??{$1*$2})/ should do it My Perl version is v5.26.1 Joseph On Wed, Jan 8, 2020 at 8:36 PM Wesley Peng wrote: > Hello > > Give the case I have a string, > > $str = "2 3 6"; > > I want to match with: > > true if $str =~ /(\d+)\s(\d+)\s($1*$2)/; > > that's to

gRPC implement question

2020-01-08 Thread Wesley Peng
Hello is there a full gRPC implementation in perl rather than this protocal buffer library? https://metacpan.org/pod/Google::ProtocolBuffers::Dynamic Thanks.

DB connection pool management

2020-01-08 Thread Wesley Peng
Hallo Is there DB connection pool management library like JDBC for mod_perl? I know there is Apache::DBI, but that seems not the one who have pool capability. Thanks & happy new year. Regards.

how to improve throughput for long time running sessions

2020-01-08 Thread Wesley Peng
Hallo We are running LR[1] and GBDT[2] and similar algorithm in MP2 handles. For each request, there were about 1000 features as arguments passed into the handles, via HTTP POST. The request will wait for about 100ms to get responses, coz the calculation is not cheap. My question is, how can

Question on a rewrite rule

2020-01-08 Thread Wesley Peng
Hello After installation of Letsencrypt free SSL, it adds a rule into apache's config file: RewriteCond %{SERVER_NAME} =sample.com RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] I know it means when SERVER_NAME is sample.com, it rewrites the plain HTTP request to

what's difference between HTTP_HOST and SERVER_NAME

2020-01-08 Thread Wesley Peng
Hello For HTTP headers, what's difference between HTTP_HOST and SERVER_NAME? I was long time confused about them. Thanks.

how to run regex calculation

2020-01-08 Thread Wesley Peng
Hello Give the case I have a string, $str = "2 3 6"; I want to match with: true if $str =~ /(\d+)\s(\d+)\s($1*$2)/; that's to say, the thrid column would be (firstCol * SecondCol). How to write regex for this? Thank you.

Re: installing mod_perl on Windows 10

2020-01-08 Thread tomcat/perl
On 08.01.2020 17:19, Edward J. Sabol wrote: On Jan 8, 2020, at 10:17 AM, André Warnier (tomcat/perl) wrote: Please provide a full path to 'apxs' executable (press Enter if you don't have it installed): Configure mod_perl with C:\Apache24? [y] y It seems to me you didn’t provide the *full*

Re: installing mod_perl on Windows 10

2020-01-08 Thread Edward J. Sabol
On Jan 8, 2020, at 10:17 AM, André Warnier (tomcat/perl) wrote: > Please provide a full path to 'apxs' executable > (press Enter if you don't have it installed): > > > Configure mod_perl with C:\Apache24? [y] y It seems to me you didn’t provide the *full* path to the apxs executable. I would

installing mod_perl on Windows 10

2020-01-08 Thread tomcat/perl
Hi. After (very) long and faithful service, I had to replace my old Windows XP development laptop by a new one, which of course came with Windows 10. And I am having problems installing Apache 2.4 + Strawberry perl + mod_perl. Apache 2.4 is from ApacheLounge