Sponsored Content
Special Forums UNIX and Linux Applications Apache+Perl: interruption of STDIN Post 302361373 by sevmax on Tuesday 13th of October 2009 04:42:39 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
SDL::Video(3)						User Contributed Perl Documentation					     SDL::Video(3)

NAME
SDL::Video - a SDL perl extension SYNOPSIS
$video = new SDL::Video ( -name => 'pr0n.mpg' ); DESCRIPTION
"SDL::Video" adds support for MPEG video to your SDL Perl application. Videos are objects bound to surfaces, whose playback is controled through the object's interface. METHODS o "SDL::Video::error()" returns any error messages associated with playback o "SDL::Video::audio(bool)" enables or disables audio playback, (on by default) o "SDL::Video::video(bool)" enables or disable video playback, (on by default) o "SDL::Video::loop(bool)" enables or disable playback looping (off by default) o "SDL::Video::volume(int)" set the volume as per the mixer volume o "SDL::Video:display(surface)" binds the clip to a display surface o "SDL::Video::scale([x,y]|[surface]|int)" scales the clip by either x,y factors, scales to the image dimensions, or a single scalar. o "SDL::Video::play()" plays the video clip, call "SDL::Video::display()" before playing o "SDL::Video::pause()" pauses video playback o "SDL::Video::stop()" stops video playback o "SDL::Video::rewind()" resets the clip to the beginning o "SDL::Video::seek(offset)" seeks to a particular byte offset o "SDL::Video::skip(time)" skips to a particular time o "SDL::Video::region(rect)" takes a SDL::Rect and defines the display area o "SDL::Video::frame(int)" renders a specific frame to the screen o "SDL::Video::info()" returns a new "SDL::MPEG" object reflecting the current status o "SDL::Video::status()" returns either SMPEG_PLAYING or SMPEG_STOPPED or SMPEG_ERROR AUTHOR
David J. Goehrig SEE ALSO
perl(1) SDL::Surface(3) SDL::MPEG(3) perl v5.12.1 2010-07-05 SDL::Video(3)
All times are GMT -4. The time now is 08:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy