Re: System crash related to mod_perl

2002-02-24 Thread Jim Hull

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I found the problem was happening for the lack of a content length header.
Adding this has since fixed the problem.



Thanks for everyones input,

Jim

- -
To play a game is to attempt to achieve a specific state of
affairs, using only means permitted by rules, where rules prohibit use of
more efficient in favour of less efficient means, and where the rules are
accepted just because they make possible such activity.

On Sun, 24 Feb 2002, Medi Montaseri wrote:

Try GET-ing the pate by telnet-ing to your HTTP prot (perhaps 80) or use
GET(1) or any of the command line HTTP clients. And wite the result to a
file
then go over it for HTTP compliancy.

Possible cases:
- - Restart your HTTP server , ie always start on a clean sheet of paper
- - Do this test on a quiet system (ie client)(ie do nothing for 2 minutes,
then do it)
- - Do this test back-to-back (load the server), if mod_perl is screwing
things up
   this might reveal it

Good luck...

Jim Hull wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> actually i do send jpeg header with jpeg, in my haste to type out my mail
> last night so i can go to bed, i typed gif on accident.
>
> Jim
>
> - -
> To play a game is to attempt to achieve a specific state of
> affairs, using only means permitted by rules, where rules prohibit use of
> more efficient in favour of less efficient means, and where the rules are
> accepted just because they make possible such activity.
>
> On Sat, 23 Feb 2002, masta wrote:
>
> On Sat, 23 Feb 2002, Jim Hull wrote:
>
> > - -- Begin --
> >
> > print $q->header(
> > -type=> 'image/gif',
> > -expires=> 'now'
> > );
> >
> > print $im->jpeg(100);
> >
> > - -- End 
> you send a jpeg, with a gif-header 
>
> send image/jpeg instead of image/gif
>
> ciao
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE8d9tpdygyS8O4zQ0RAjHoAKC/N2TR8ST4meJowDykZUkpwE8EoQCgv60Z
> ztBrlJ7xslDXDcHNDcw1ynI=
> =+4Vi
> -END PGP SIGNATURE-

- --
- -
Medi Montaseri   [EMAIL PROTECTED]
Unix Distributed Systems EngineerHTTP://www.CyberShell.com
CyberShell Engineering
- -

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8eaCodygyS8O4zQ0RAhDxAJ99jax1qHwGhVmbrVYFWh6irjbjTQCfU4R/
RfS3VvVayJHTOFvkta32hjA=
=VXtY
-END PGP SIGNATURE-





Re: System crash related to mod_perl

2002-02-23 Thread Jim Hull

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sir,
Thanks for the help, as it turned out it was the lack of me
including a content length that was causing it to hang. This thread can
now be disregarded, thanks for everyones time.


Jim

- -
To play a game is to attempt to achieve a specific state of
affairs, using only means permitted by rules, where rules prohibit use of
more efficient in favour of less efficient means, and where the rules are
accepted just because they make possible such activity.

On Sat, 23 Feb 2002, Ged Haywood wrote:

Hi Jim,

On Sat, 23 Feb 2002, Jim Hull wrote:

> I wrote some code to dynamically create an image
[snip]
> viola.[:)]
[snip]
> Within a few minutes my wife complains her browser has crashed.
[snip]
> I did not notice the problem as I exclusively use Mozilla,
[snip]

That's unusual, normally it's easier to crash Mozilla than IE, but
there are _lots_ of ways to break both.  Some of the easiest involve
sending broken HTML and/or headers, which is where I'd look first.
Check particularly things like Content-length for IE and tag nesting
for Netscape.

> if it works in normal perl, it should work in mod_perl (IMHO).

H...

Well it looks like it's not doing the same thing when you enable
mod_perl that it is doing when you use plain Apache.  You need to find
out what is different.  See the debugging section of the Guide, which
you can find at http://perl.apache.org/guide.

If you need to post again, first have a look at the docs mentioned in
mod_perl/SUPPORT so you can give a better description of your setup.

73,
Ged.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8d+1+dygyS8O4zQ0RAj4IAJ9fnP3aNMHS+Kt3GHE1emYZuGsnWQCgqyxp
T0qgqlyftq+J0AT47/Dm8JY=
=O62U
-END PGP SIGNATURE-





Re: System crash related to mod_perl

2002-02-23 Thread Jim Hull

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

actually i do send jpeg header with jpeg, in my haste to type out my mail
last night so i can go to bed, i typed gif on accident.


Jim

- -
To play a game is to attempt to achieve a specific state of
affairs, using only means permitted by rules, where rules prohibit use of
more efficient in favour of less efficient means, and where the rules are
accepted just because they make possible such activity.

On Sat, 23 Feb 2002, masta wrote:



On Sat, 23 Feb 2002, Jim Hull wrote:

> - -- Begin --
>
> print $q->header(
> -type=> 'image/gif',
> -expires=> 'now'
> );
>
> print $im->jpeg(100);
>
> - -- End 
you send a jpeg, with a gif-header 

send image/jpeg instead of image/gif

ciao
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8d9tpdygyS8O4zQ0RAjHoAKC/N2TR8ST4meJowDykZUkpwE8EoQCgv60Z
ztBrlJ7xslDXDcHNDcw1ynI=
=+4Vi
-END PGP SIGNATURE-





System crash related to mod_perl

2002-02-23 Thread Jim Hull

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greetings all,

First, note .. I am not suggesting that mod_perl caused the
following odd occurance, I am merely suggesting that it is related to
mod_perl, and hopefully someone has ran into a similar problem.

To begin, I wrote some code to dynamically create an image (jpeg
to be specific) of 8 various chars placed randomly. I then spit it out to
the browser with mime type 'image/jpeg' and viola. Here is a small code
snippet of the final action.

- -- Begin --

print $q->header(
-type=> 'image/gif',
-expires=> 'now'
);

print $im->jpeg(100);

- -- End 


This works fine, and so far on all platforms and browsers I have tried.
After finishing development of my site, i turned on modperl. Within a few
minutes my wife complains her browser has crashed. this problem is
occurring _only_ during this image download, _only_ on IE, and _only_
when I have mod_perl enabled. I did not notice the problem as I
exclusively use Mozilla, which seems to be working fine.


In conclusion, I admit that yes, IE is POS and should not crash
when this is occurring, and is strange behavior indeed. But alternatively
if it works in normal perl, it should work in mod_perl (IMHO). Hopefully
this problem is caused by my possible ignorance and someone can enlighten
me. I tested this on my desktop (linux/Mozilla), my wifes machine running
win98/IE 5 i believe, and my sons machine running winme. Any help would be
greatly appreciated.


Jim

- -
To play a game is to attempt to achieve a specific state of
affairs, using only means permitted by rules, where rules prohibit use of
more efficient in favour of less efficient means, and where the rules are
accepted just because they make possible such activity.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8d48xdygyS8O4zQ0RAoCIAKCeI4EI49hOTtB/75TRmVl80fU4DQCdFCvs
LtcYGqsGMiAhbqsZj9nnyo4=
=mQXt
-END PGP SIGNATURE-