On Sunday 26 March 2006 5:00 pm, Dennis Lee Bieber wrote: > Any possibility you need to specify an option on the socket > connections to reuse-sockets without the normal time-out?
The problem turned out to be keep-alive. Apparently, Comcast is limiting my inbound connections. Apache keeps the connections alive so it works fine. The Python servers don't support keep-alive and are using up the available connections too quickly. I'm now using Apache as a proxy to the Python server and it works well. Thanks for the response. > On Sun, 26 Mar 2006 14:55:12 -0500, Ron Davis <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > I've looked in to fastcgi and mod_python but I'm not sure either is what > > I need. What I want is for my Python program to be polling the web > > services 24/7 and Apache to serve static pages by itself but call a > > function in my already running Python program for files with a certain > > extension (.xml for example). > > I think you'll first need to disconnect the two sides... The program > doing the polling has to run completely stand-alone from your own > web-server. I also think you'll need to create some independent > (file-system?) store which the polling program can write to; so your web > server page can do the selected retrieval -- but since you don't want a > database capable of concurrent access... The polling program needs to > include an asynchronous or threaded scheme with a local socket so the > web server (CGI) process can connect to it and requests the poller to > return the data. > > > Ideally, I'd like to figure out why the Python servers are having > > problems. This is a very low volume system so straight Python would be > > great if I can get it working. > > Any possibility you need to specify an option on the socket > connections to reuse-sockets without the normal time-out? > -- > > > ============================================================== < > > [EMAIL PROTECTED] | Wulfraed Dennis Lee Bieber KD6MOG < > > [EMAIL PROTECTED] | Bestiaria Support Staff < > > ============================================================== < > > Home Page: <http://www.dm.net/~wulfraed/> < > > Overflow Page: <http://wlfraed.home.netcom.com/> < -- Ron Davis Custom Software Engineering -- http://mail.python.org/mailman/listinfo/python-list