Yong Wang wrote: > Hi Steve: > The propblem I run into is about one minute. The CGI script is not > completed to run and aborted. > If I run the python script in backend solaris machine, the script needs about > one minute for database > access. > Thanks, > > Yong > In which case you probably need to tweak the server timeout setting. Nothing you can do from Python (except possibly make your CGI run faster).
regards Steve > >>Yong Wang wrote: >> >>>Hi, All: >>> I have written a python CGI script to run in html web page. When I >>> access to >>>the html page, it only runs part of the script, then abort because the late >>>part of >>>the script is involved in database access, it is slow. I wonder whether >>>there is >>>a way to control html running speed so that it can wait for CGI script to >>>complete >>>execution, then write the results to html page ? >>> Thanks a lot . >>> >>> Yong >>> >> >>Most servers impose some sort of CPU limit on CGI processes (though >>typically this defaults to a value of 30 seconds or more). If you really >>are going past your server's default(?) limit you really need to either >>tweak the limit up on the server (at least for that script) or >>reconsider whether the application is suitable for CGI in the first place. >> >>What kind of "slow" are we talking about here? A minute? Ten minutes? >> >>regards >> Steve >>-- >>Steve Holden +44 150 684 7255 +1 800 494 3119 >>Holden Web LLC/Ltd http://www.holdenweb.com >>Skype: holdenweb http://holdenweb.blogspot.com >>Recent Ramblings http://del.icio.us/steve.holden >> >>-- >>http://mail.python.org/mailman/listinfo/python-list >> > > > > > -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list