speedycgi-users Mailing List for SpeedyCGI (Page 9)
Brought to you by:
samh
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
(4) |
Mar
(12) |
Apr
(3) |
May
(1) |
Jun
(10) |
Jul
(12) |
Aug
(2) |
Sep
(8) |
Oct
(10) |
Nov
(4) |
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
|
Feb
|
Mar
(12) |
Apr
(1) |
May
(18) |
Jun
(1) |
Jul
(3) |
Aug
(3) |
Sep
(9) |
Oct
(21) |
Nov
(11) |
Dec
(2) |
| 2004 |
Jan
(6) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(10) |
Jun
(3) |
Jul
(4) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2005 |
Jan
|
Feb
|
Mar
(4) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(6) |
Aug
(4) |
Sep
(1) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Sam H. <sa...@da...> - 2002-03-30 05:48:16
|
Here's a patch against 2.11 to fix it. The problem is that the frontend
blocks sigalarms, but fails to unblock them after forking the backend.
This patch just adds a cleanup after the fork.
*** src/speedy_frontend.c.orig Mon Mar 19 14:53:05 2001
--- src/speedy_frontend.c Fri Mar 29 21:40:22 2002
***************
*** 76,81 ****
--- 76,84 ----
}
} else {
/* Child */
+ static void sig_handler_teardown();
+
+ sig_handler_teardown();
/* Fork */
pid = fork();
> Subject: alarm function does not seem to work
> <TOP>
> Greetings,
>
> I have been successfully using your Speedy CGI module for quite
> some time now, Thanks! However, I can not get Perl's "alarm" function to
> work (doesn't ever time out and raise exception). Exact same code works fine
> under normal CGI. For some strange reason, it seems to work with the "sleep"
> function. I have included below a sample program that always times out
> with normal CGI, but ALWAYS completese successfully (but should time out)
> when using Speedy. Please advise by replying to this email.
>
>
> Thanks in advance!
>
>
> Jim Turner
> jim...@lm...
>
> ============================================================================
> #!/applocal/bin/speedy
>
> print "Content-type: text/html\nWindow-target: _parent", "\n\n";
> use lib '.';
> use CGI ':standard';
> eval 'use CGI::SpeedyCGI; 1';
>
> $runtype = 'NORMAL CGI';
> ++$runcnt;
> eval {$sp_query = CGI::SpeedyCGI->new; $runtype = 'SPEEDY' if ($sp_query->i_am_speedy);};
>
> sub setAlarm
> {
> die "timeout";
> }
>
>
> $SIG{ALRM} = \&setAlarm;
>
> print "<BR>BEFORE time=".scalar(localtime);
> alarm(1);
>
> eval
> {
> for ($i=0;$i<=1999999;$i++) #LONG-RUNNING LOOP!
> {
> }
> };
> print "<BR> AFTER time=".scalar(localtime);
>
> print "<BR>PID=$$ cnt=$runcnt= i=$i= runtype=$runtype Error code =$@=\n";
> if ($@ =~ /timeout/)
> {
> print "<BR>--- TIMED OUT!\n";
> }
> else
> {
> print "<BR>Success!\n";
> }
> alarm(0);
> ============================================================================
>
>
>
>
> .
>
> _______________________________________________
> Speedycgi-users mailing list
> Spe...@li...
> https://lists.sourceforge.net/lists/listinfo/speedycgi-users
|
|
From: <jim...@lm...> - 2002-03-25 21:23:54
|
Subject: alarm function does not seem to work
<TOP>
Greetings,
I have been successfully using your Speedy CGI module for quite
some time now, Thanks! However, I can not get Perl's "alarm" function to
work (doesn't ever time out and raise exception). Exact same code works fine
under normal CGI. For some strange reason, it seems to work with the "sleep"
function. I have included below a sample program that always times out
with normal CGI, but ALWAYS completese successfully (but should time out)
when using Speedy. Please advise by replying to this email.
Thanks in advance!
Jim Turner
jim...@lm...
============================================================================
#!/applocal/bin/speedy
print "Content-type: text/html\nWindow-target: _parent", "\n\n";
use lib '.';
use CGI ':standard';
eval 'use CGI::SpeedyCGI; 1';
$runtype = 'NORMAL CGI';
++$runcnt;
eval {$sp_query = CGI::SpeedyCGI->new; $runtype = 'SPEEDY' if ($sp_query->i_am_speedy);};
sub setAlarm
{
die "timeout";
}
$SIG{ALRM} = \&setAlarm;
print "<BR>BEFORE time=".scalar(localtime);
alarm(1);
eval
{
for ($i=0;$i<=1999999;$i++) #LONG-RUNNING LOOP!
{
}
};
print "<BR> AFTER time=".scalar(localtime);
print "<BR>PID=$$ cnt=$runcnt= i=$i= runtype=$runtype Error code =$@=\n";
if ($@ =~ /timeout/)
{
print "<BR>--- TIMED OUT!\n";
}
else
{
print "<BR>Success!\n";
}
alarm(0);
============================================================================
.
|
|
From: Mark T. <m.t...@sh...> - 2002-03-25 16:30:08
|
I am using speedy with a non-CGI script and the parameters are getting corrupted. i.e: what should be one single parameter is being broken up into many seperate parameters. has anyone else had this problem? (I have worked around this by using <STDIN> to pass the data into my script, but I would ideally like to use command-line parameters). thanks, mark. |
|
From: Mark T. <m.t...@sh...> - 2002-03-25 16:26:56
|
I am using speedy with a non-CGI script, and it is hanging after the exit(). has anyone else encountered this? thanks, mark. |
|
From: Lars U. <lu...@me...> - 2002-03-25 13:32:02
|
On Mon, Mar 25, 2002 at 01:22:12PM +0000, Mark Taylor wrote: >=20 > has anyone used speedy with non-CGI scripts? Yep, see my previous post to this list. As long as you do not depend on the programs exit() status, it's no problem at all. Lars --=20 Lars Uffmann, <lar...@me...>, fon: +49 5246 80 1330 |
|
From: Mark T. <m.t...@sh...> - 2002-03-25 13:22:25
|
has anyone used speedy with non-CGI scripts? -- Mark Taylor, Department of Corporate Information & Computing Services, University of Sheffield. Extension 21145. (0114) 222 1145 http://www.shef.ac.uk/~ad1mt The opinions expressed in this email are mine and not those of the University of Sheffield. |
|
From: Sam H. <sa...@da...> - 2002-03-06 16:43:33
|
There's no way to pass exit status in the current code. It's on my list of things to add, and I have an idea of how I'm going to do it, but that's about it. > Hi, > > I use speedycgi to speed up a standalone, non-cgi script. This works > great, besides the > scripts exitcode will allways be 0, regardless of the code passed to > perls exit() builtin. > Is there a way to pass the scripts exitcode to the speey frontend ? > > regards, > Lars Uffmann > > -- > Lars Uffmann, <lar...@me...>, fon: +49 5246 80 1330 > > > > _______________________________________________ > Speedycgi-users mailing list > Spe...@li... > https://lists.sourceforge.net/lists/listinfo/speedycgi-users |
|
From: Lars U. <lu...@me...> - 2002-03-06 12:10:58
|
Hi,
I use speedycgi to speed up a standalone, non-cgi script. This works
great, besides the
scripts exitcode will allways be 0, regardless of the code passed to
perls exit() builtin.
Is there a way to pass the scripts exitcode to the speey frontend ?
regards,
Lars Uffmann
--
Lars Uffmann, <lar...@me...>, fon: +49 5246 80 1330
|
|
From: Sam H. <sa...@da...> - 2002-03-05 19:11:58
|
That's how it's supposed to behave. The script is identified by device and inode, not by path. But even if they're sharing the same backend each domain will still get its own environment, and it's own $0. > I have a common /cgi-bin setup with "test.cgi" in there, using speedy. > > I've got 10 domains that all map themselves to this directory, ala: > ln -s /path/to/cgi-bin ./bin > > So when hitting domain1.com/bin/test.cgi, the actual "$0" of the script is /path/to/domain1/bin/test.cgi > > (I do this because I'm doing some other tests inside the program based on the domain name, etc) > > Anyway, speedyCGI doesn't see /path/to/domain1/bin/test.cgi and /path/to/domain2/bin/test.cgi as separate programs. > > No matter which domain hits that .cgi, there's only one speedy backend started, not a separate one for each, as I need it to be. Essentially, the program is identical (obviously) except for the path. It's a requirement because each domain, while they share this program, needs a separate "copy" of it in speedy (environment vars, domain specific globals, etc) > > > Is this a known issue, and is there a workaround? > > > Thanks, John Cokos > > > ____________________________________________________________________ > Get your own FREE KillerWebMail account at http://killerwebmail.com > -------------------------------------------------------------------- > Want to host your own KillerWebMail server? Buy IMail Server plus > KillerWebMail from Humankind Systems... http://humankindsystems.com > -------------------------------------------------------------------- > Does your company need to route, track and archive email between > your customers and staff? If so, check out AnswerTrack Server at > http://www.AnswerTrack.com... the Lite version is completely FREE! > -------------------------------------------------------------------- > Books just wanna be free - http://BookCrossing.com - Read & Release! > > > > > _______________________________________________ > Speedycgi-users mailing list > Spe...@li... > https://lists.sourceforge.net/lists/listinfo/speedycgi-users |
|
From: John C. <jc...@ki...> - 2002-03-05 18:59:38
|
I have a common /cgi-bin setup with "test.cgi" in there, using speedy. I've got 10 domains that all map themselves to this directory, ala: ln -s /path/to/cgi-bin ./bin So when hitting domain1.com/bin/test.cgi, the actual "$0" of the script is /path/to/domain1/bin/test.cgi (I do this because I'm doing some other tests inside the program based on the domain name, etc) Anyway, speedyCGI doesn't see /path/to/domain1/bin/test.cgi and /path/to/domain2/bin/test.cgi as separate programs. No matter which domain hits that .cgi, there's only one speedy backend started, not a separate one for each, as I need it to be. Essentially, the program is identical (obviously) except for the path. It's a requirement because each domain, while they share this program, needs a separate "copy" of it in speedy (environment vars, domain specific globals, etc) Is this a known issue, and is there a workaround? Thanks, John Cokos ____________________________________________________________________ Get your own FREE KillerWebMail account at http://killerwebmail.com -------------------------------------------------------------------- Want to host your own KillerWebMail server? Buy IMail Server plus KillerWebMail from Humankind Systems... http://humankindsystems.com -------------------------------------------------------------------- Does your company need to route, track and archive email between your customers and staff? If so, check out AnswerTrack Server at http://www.AnswerTrack.com... the Lite version is completely FREE! -------------------------------------------------------------------- Books just wanna be free - http://BookCrossing.com - Read & Release! |
|
From: Sam H. <sa...@da...> - 2002-02-11 03:19:58
|
test |
|
From: lora hanna<maz...@ya...> - 2002-02-06 17:45:52
|
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>CONGRATULATIONS!! YOU WON!! </title>
</style>
</head>
<BODY bgcolor="#CCCCFF" background="bg27.gif">
<script language="JavaScript">
<!--
function namosw_fade_background(r1, g1, b1, r2, g2, b2, maxstep)
{
var i, r, g, b;
for (i = 0; i <= maxstep; i++) {
r = Math.floor((r1*(maxstep-i) + r2*i)/maxstep);
g = Math.floor((g1*(maxstep-i) + g2*i)/maxstep);
b = Math.floor((b1*(maxstep-i) + b2*i)/maxstep);
namosw_fade_setbgcolor(r, g, b)
}
}
function namosw_fade_setbgcolor()
{
var hexchars = '0123456789abcdef';
var i;
var color_str = '#';
var args = namosw_fade_setbgcolor.arguments;
if (args.length != 3)
return;
for (i = 0; i < 3; i++) {
color_str += hexchars.charAt(Math.floor(args[i]/16));
color_str += hexchars.charAt(args[i]%16);
}
document.bgColor = color_str;
}
//-->
</script>
<p> </p>
<p><font color="blue"><b><span style="font-size:16pt;">CONGRATULATIONS!! YOU
WON!!</b></font> </span></p>
<p> </p>
<p><font color="navy"><b>YOUR FREE MEMBERSHIP & FREE SOFTWARE!! </b></font></p>
<p><font color="navy"><b>PLUS - Your FREE Cell Phone!! </b></font></p>
<p><b> </b></p>
<p><font color="navy"><b>CHECK IT OUT! </b></font></p>
<p><font color="navy"><b>2500+ MEMBERS A MONTH!! </b></font></p>
<p><font color="navy"><b> </b></font></p>
<p><font color="navy"><b>ALL new members that come into the club </b></font></p>
<p><font color="navy"><b>COMPANY WIDE will go under YOU. </b></font></p>
<p><font color="navy"><b> </b></font></p>
<p><font color="navy"><b>A true VERTICAL downline. </b></font></p>
<p><font color="navy"><b>YOU can easily get 1500+ members </b></font></p>
<p><font color="navy"><b>under YOU in a month! </b></font></p>
<p><font color="navy"><b> </b></font></p>
<p><font color="navy"><b>How would you like a </b></font></p>
<p><font color="navy"><b>Commission Check every Month? </b></font></p>
<p><b> </b></p>
<p><font color="red"><b>JOIN FREE!!!........JOIN FREE!!!! </b></font></p>
<p><b> </b></p>
<p><font color="blue"><b>To join our FREE Postlaunch Program </b></font></p>
<p><font color="blue"><b>Go to sign Up at: </b></font></p>
<p> </p>
<p><b><a href="http://www.geocities.com/personanalworldcup/"><span style="font-size:16pt;"><font color="blue">http://www.geocities.com/personanalworldcup/</font></span></a></b></p>
<p> </p>
</html>
|
|
From: linda morgan<maz...@ya...> - 2002-02-05 15:20:28
|
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>CONGRATULATIONS!! YOU WON!! </title>
</style>
</head>
<BODY bgcolor="#CCCCFF" background="bg27.gif">
<script language="JavaScript">
<!--
function namosw_fade_background(r1, g1, b1, r2, g2, b2, maxstep)
{
var i, r, g, b;
for (i = 0; i <= maxstep; i++) {
r = Math.floor((r1*(maxstep-i) + r2*i)/maxstep);
g = Math.floor((g1*(maxstep-i) + g2*i)/maxstep);
b = Math.floor((b1*(maxstep-i) + b2*i)/maxstep);
namosw_fade_setbgcolor(r, g, b)
}
}
function namosw_fade_setbgcolor()
{
var hexchars = '0123456789abcdef';
var i;
var color_str = '#';
var args = namosw_fade_setbgcolor.arguments;
if (args.length != 3)
return;
for (i = 0; i < 3; i++) {
color_str += hexchars.charAt(Math.floor(args[i]/16));
color_str += hexchars.charAt(args[i]%16);
}
document.bgColor = color_str;
}
//-->
</script>
<p> </p>
<p><font color="blue"><b><span style="font-size:16pt;">CONGRATULATIONS!! YOU
WON!!</b></font> </span></p>
<p> </p>
<p><font color="navy"><b>YOUR FREE MEMBERSHIP & FREE SOFTWARE!! </b></font></p>
<p><font color="navy"><b>PLUS - Your FREE Cell Phone!! </b></font></p>
<p><b> </b></p>
<p><font color="navy"><b>CHECK IT OUT! </b></font></p>
<p><font color="navy"><b>2500+ MEMBERS A MONTH!! </b></font></p>
<p><font color="navy"><b> </b></font></p>
<p><font color="navy"><b>ALL new members that come into the club </b></font></p>
<p><font color="navy"><b>COMPANY WIDE will go under YOU. </b></font></p>
<p><font color="navy"><b> </b></font></p>
<p><font color="navy"><b>A true VERTICAL downline. </b></font></p>
<p><font color="navy"><b>YOU can easily get 1500+ members </b></font></p>
<p><font color="navy"><b>under YOU in a month! </b></font></p>
<p><font color="navy"><b> </b></font></p>
<p><font color="navy"><b>How would you like a </b></font></p>
<p><font color="navy"><b>Commission Check every Month? </b></font></p>
<p><b> </b></p>
<p><font color="red"><b>JOIN FREE!!!........JOIN FREE!!!! </b></font></p>
<p><b> </b></p>
<p><font color="blue"><b>To join our FREE Postlaunch Program </b></font></p>
<p><font color="blue"><b>Go to sign Up at: </b></font></p>
<p> </p>
<p><a href="http://www.geocities.com/mercurylazare2/"><b><span style="font-size:16pt;"><font color="blue">http://www.geocities.com/mercurylazare2/ </font></span></b></a></p>
<p> </p>
<p> </p>
</html>
|
|
From: linda morgan<maz...@ya...> - 2002-02-04 16:52:35
|
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>CONGRATULATIONS!! YOU WON!! </title>
</style>
</head>
<BODY bgcolor="#CCCCFF" background="bg27.gif">
<script language="JavaScript">
<!--
function namosw_fade_background(r1, g1, b1, r2, g2, b2, maxstep)
{
var i, r, g, b;
for (i = 0; i <= maxstep; i++) {
r = Math.floor((r1*(maxstep-i) + r2*i)/maxstep);
g = Math.floor((g1*(maxstep-i) + g2*i)/maxstep);
b = Math.floor((b1*(maxstep-i) + b2*i)/maxstep);
namosw_fade_setbgcolor(r, g, b)
}
}
function namosw_fade_setbgcolor()
{
var hexchars = '0123456789abcdef';
var i;
var color_str = '#';
var args = namosw_fade_setbgcolor.arguments;
if (args.length != 3)
return;
for (i = 0; i < 3; i++) {
color_str += hexchars.charAt(Math.floor(args[i]/16));
color_str += hexchars.charAt(args[i]%16);
}
document.bgColor = color_str;
}
//-->
</script>
<p> </p>
<p><font color="blue"><b><span style="font-size:16pt;">CONGRATULATIONS!! YOU
WON!!</b></font> </span></p>
<p> </p>
<p><font color="navy"><b>YOUR FREE MEMBERSHIP & FREE SOFTWARE!! </b></font></p>
<p><font color="navy"><b>PLUS - Your FREE Cell Phone!! </b></font></p>
<p><b> </b></p>
<p><font color="navy"><b>CHECK IT OUT! </b></font></p>
<p><font color="navy"><b>2500+ MEMBERS A MONTH!! </b></font></p>
<p><font color="navy"><b> </b></font></p>
<p><font color="navy"><b>ALL new members that come into the club </b></font></p>
<p><font color="navy"><b>COMPANY WIDE will go under YOU. </b></font></p>
<p><font color="navy"><b> </b></font></p>
<p><font color="navy"><b>A true VERTICAL downline. </b></font></p>
<p><font color="navy"><b>YOU can easily get 1500+ members </b></font></p>
<p><font color="navy"><b>under YOU in a month! </b></font></p>
<p><font color="navy"><b> </b></font></p>
<p><font color="navy"><b>How would you like a </b></font></p>
<p><font color="navy"><b>Commission Check every Month? </b></font></p>
<p><b> </b></p>
<p><font color="red"><b>JOIN FREE!!!........JOIN FREE!!!! </b></font></p>
<p><b> </b></p>
<p><font color="blue"><b>To join our FREE Postlaunch Program </b></font></p>
<p><font color="blue"><b>Go to sign Up at: </b></font></p>
<p> </p>
<p><a href="http://www.geocities.com/mercurylazare2/"><b><span style="font-size:16pt;"><font color="blue">http://www.geocities.com/mercurylazare2/ </font></span></b></a></p>
<p> </p>
<p> </p>
</html>
|