Apache+Perl: interruption of STDIN

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Apache+Perl: interruption of STDIN
# 1  
Old 10-13-2009
Question 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:
Quote:
There are a few common causes for IO errors. Unfortunately the Flash Player doesn't give any details.

The only way I can think of to log the details is to handle the uploadError event and send the "message" parameter to the server as an ajax request.

Whatever is shown in the message parameter is all the information that Flash gives us.

Most often IO errors are seen:
1. The POST (file size + other post paramters) exceeds the max allowed by the server.
2. The server script execution time exceeds the timeout limit
3. mod_security rejects the upload (because the Flash Player uses a valid but suspicious format for the upload)
4. An error in the page terminates the connection without a response
5. Some other timeout.
6. Anti-virus software.
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
# 2  
Old 10-13-2009
Quote:
The only way I can think of to log the details is to handle the uploadError event and send the "message" parameter to the server as an ajax request.
This seems like a good idea.
# 3  
Old 10-13-2009
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
# 4  
Old 10-21-2009
Quote:
Originally Posted by sevmax
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Simple capturing of keyboard input without interruption

I would like to make a function or command that checks for keyboard input without interrupting the program and exits the program when a key is pressed (perhaps the 'q' key). The program below monitors and prints/executes commands upon a change in primary (mouse selection) or clipboard buffer. If... (4 Replies)
Discussion started by: bedtime
4 Replies

2. AIX

ssh interruption after aix os upgrade

Hi Through nimadm (alt_disk_install) we done aix os upgrade in 3 lpars from aix 5.3 to aix 6.1. upgrade was successful. After the upgrade users complained on their ssh keys. Does upgrading aix version affects the user's ssh keys ? If so please suggest on options to correct them. (1 Reply)
Discussion started by: newtoaixos
1 Replies

3. Shell Programming and Scripting

How to run the script with out any interruption ?

Hi , Loggin to another host using the below command in my shell script ssh-keygen > /dev/null ssh-copy-id -i ~/.ssh/id_rsa.pub My problem is , the second commmand expecting a user input Eg : Press Enter for below three questions and issue your password Enter file... (9 Replies)
Discussion started by: arukuku
9 Replies

4. Shell Programming and Scripting

ssh connection through shell script with no interruption

Hi all, I need ssh in shell script. My requirement is: - Take user_name and password from user (in PHP) - Pass this to shell script which will: - connect via ssh - Run sql query - Pass the results back in PHP - Put the results to website. I know PHP has libraries for ssh and ftp, but... (3 Replies)
Discussion started by: shekhar2010us
3 Replies

5. Shell Programming and Scripting

STDIN-perl

Good morning! How do I make the info that someone inputs from @userArray = <STDIN>, a new array? @userArray = <STDIN>; while () { chomp; last if ! /\d/; push(@userArray,$_); } my($sum,$avg) = &sumIt(@userArray); print "Total:$sum\nAverage:$avg\n"; Im... (2 Replies)
Discussion started by: bigben1220
2 Replies

6. Red Hat

util-linux upgrade with interruption?

Hi All, I have util-linux upgrade that I need to do on redhat 4 ent. Does this going to interruption with the operation of the OS or application? Or this will be straight forward upgrade that will not make a harm or downtime of the OS. Thank you for any comments you may add. (3 Replies)
Discussion started by: itik
3 Replies

7. UNIX for Advanced & Expert Users

Apache module & perl problem

I have a very strange problem that I can't seem to solve. I have apache module which filters content and within that module I will add some more content based on this calls: int check; check = system("/usr/bin/check"); check is a perl-script that exits with value 1 if the file doesn't... (2 Replies)
Discussion started by: hjalle
2 Replies

8. Programming

Wireless C program conncection interruption problem

Dear Gurus My company has a wireless handheld C program as text-mode workstations in remote sites. We suspected that the program get interrupted sometimes because of out-of-wireless access and hence resulted in db record locking and other issue. It did trouble us a lot. Is it possible to use... (2 Replies)
Discussion started by: charles_chu
2 Replies

9. Web Development

php and perl on apache server

I'm having problems opening php and perl files on Apache. The server hasn't any association with those type of files by default and a window asking to choose a program to open them popups from the browser. How can I do to process them with the browser Thanks in advance. (1 Reply)
Discussion started by: capibolso
1 Replies

10. UNIX for Dummies Questions & Answers

Apache Perl/CGI

Can any body help me with apache and cgi i'dont know how iconfigure apache to use cgi... and when i try to start apachectl it says there is no file... please help me...i have apache installed... (1 Reply)
Discussion started by: CreamHarry
1 Replies
Login or Register to Ask a Question