2

I noticed a problem with web pages getting 'cut off' with a Perl/CGI based proprietary application I administer on a server running Apache 2.2. This lead me to investigate the problem further by writing a little Perl script myself I was able to recreate the same problem. There is no particular place that the output gets cut off. I have considered the possibility of time outs but I cannot find any time out related errors in the web server logs. The limits set for CGI appear to be fine too.

What measures can I take to identify the cause (and fix) this problem?

4
  • Which version of Perl? Commented Aug 4, 2009 at 16:14
  • The version of Perl is 5.8.8 Commented Aug 6, 2009 at 7:45
  • Which OS do use use at server? Commented Aug 12, 2009 at 21:00
  • The OS is Debian Etch. Commented Aug 13, 2009 at 8:59

2 Answers 2

2

Anyway, in case anyone is interested I found a solution to my problem. The application wasn't providing a content-length. When I wrote a script to buffer the output and append a content-length before displaying it to the browser the problem was solved.

1

Why don't you post the "little Perl script" here? Are you writing to the screen with "print"? Those shouldn't be buffered or anything.

1
  • I just mentioned that I could reproduce the problem by writing code but that's not the problem itself - as I mentioned I discovered the problem with this application hosted on the server so I believe there may be a problem with the environment that I need to figure out. Commented Aug 5, 2009 at 7:09

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.