Apache+Perl: interruption of STDIN

Hello dear community!
I have faced with a trouble which I trying to solve for a long time.

I have service of video streaming. And I have web and video roles for servers.
Video servers upload video using SWFUpload and then stream it.
Issue became during uploading of video.
In random time users receive "I/O error", and I have record in database about this failure.
Also I am unable to repeat this error because don't know reasons.

Below are details of system:
CentOS 5 x86_64
Apache
Arch : x86_64
Version: 2.2.3
Release: 11.el5_2.centos.4

Perl
Arch : i386
Version: 5.8.8
Release: 15.el5_2.1

Below is answer I've receive on the same question from SWFUpload forum:

I don't have #3 mod_security and #6 Anti-virus software on servers.

Is there any way to set timeouts for perl like for php in php.ini?

For Apache there are these settings for timeout:
Timeout 3000
KeepAliveTimeout 1500

Seems it would be enough. Is there any other timeout settings I could set for perl scripts?

Also, I'm using prefork MPM. If I change it for worker MPM could it help someway?

Help please to find the reason of errors.
I'll write any additional details which need to do progress.

Regards,
Maxim

This seems like a good idea.

hello, Corona688
Thank you for your answer.
I'm not programmer, but system administrator. Could you please explain me what ajax request could give us? Then I'll forward your answer to developers for application rebuilding.

Regards,
Maxim

An AJAX request would mean returning an error message from your program to your server via a CGI interface... perhaps a URL it can POST the error message to when it fails. It needn't be part of the main interface if it's just for debugging purposes.