SunQuest
           Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old November 26th, 2003, 04:24 AM
fuffens fuffens is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 fuffens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cgi timeout

I am running Python scripts as cgi with the Apache web server. The scripts are running for a long time (about 10 minutes), then the result is supposed to be presented. The problem is that there is a time out after 5 minutes and the Python script is not finished.

I have updated the /etc/httpd/httpd.conf file. I set the Timeout to 6000. After that I restarted the Apache with /etc/init.d/apache restart. The application is still timed out after 5 mintes. I even restared the server, but it did not make any difference.

What can I do the prevent the timeout?

Regards,
Fredrik

Reply With Quote
  #2  
Old November 26th, 2003, 08:39 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
I don't think Apache will let will let you run a CGI process for long . I believe this is one of the reasons FastCGI was created but dont quote me on that.. in any case FastCGI does allow long running processes.. maybe you'd get a better responce for Question in the Apache form?

In any case, what are you doing that required a process too run for 10 MINUTES, most don't even run for 10 SECONDS

Have fun.
Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #3  
Old November 26th, 2003, 08:59 AM
fuffens fuffens is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 fuffens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks netytan. I already asked the question in the Apache forum with no luck. What is FastCGI? A webserver?

I am creating a web interface for production tests of one of our products. The web server runs motors among other things. The test cycles are long, up to 10 minutes.

Reply With Quote
  #4  
Old November 26th, 2003, 03:27 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
FastCGI is an Apache module which as i understand it allows long running CGI processes..

http://www.fastcgi.com/

If this doesn't work for you i'd probably suggest you run it from the command line and save the output to a file (as html) and then lauch the file when the process is done

Quote:
The web server runs motors among other things


Sounds interesting, you mean motors on machines etc?

Mark.

Reply With Quote
  #5  
Old November 28th, 2003, 04:26 AM
fuffens fuffens is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 19 fuffens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The problem did not have to do with cgi timeout. I let a python script generate the time for 10 minutes. The session kept alive through the script. My mistake! Thank you for your advices!

I am doing a production test environment for a satellite terminal. So the web server is connected to the terminal and I run motors, modem, amplifier, and read values from compass, gps etc from the web server. It's really interesting work!

Regards,
Fredrik

Reply With Quote
  #6  
Old November 28th, 2003, 05:42 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
def, sounds very cool! and way beond me for once i cant even image how to connect with all those things lol, anyway glad you figured it out

Mark.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Cgi timeout


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway