I have recently discovered Python and like it quite a bit. I would like to
use it on a new project I am starting.
The project will gather data from several web services and present the
collected data to browser users through a web server.
So basically I need a full-time web server and a separate way to poll web
services for their data. There is no database involved.
The problem is that I have tried several Python web servers (CherryPy,
Karrigell, etc) and they all have problems getting out through my Comcast
cable modem. There is a 3 second pause every 10th file. Never the 9th or
11th, but always the 10th file.
I thought maybe Comcast was limiting incomming HTTP but Apache does not do
this so I'm stumped as to why it is happening with the Python servers. All
servers work fine over the LAN.
Anyway, I wanted to get some advice on what type of setup would be best
for this using Apache. The web service polling needs to be going all the
time so a straight CGI-type thing is not an option.
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).
Have any of you done something like this before?
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.
Thanks for any advice you can give.
--
Ron Davis
--
Ron Davis 1 2068
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 <wi**@comcast.n et>
declaimed the following in comp.lang.pytho n: 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? --
> =============== =============== =============== =============== == < > wl*****@ix.netc om.com | Wulfraed Dennis Lee Bieber KD6MOG < > wu******@dm.net | Bestiaria Support Staff < > =============== =============== =============== =============== == < > Home Page: <http://www.dm.net/~wulfraed/> < > Overflow Page: <http://wlfraed.home.ne tcom.com/> <
--
Ron Davis
Custom Software Engineering This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Michael Hatmaker |
last post by:
I have begun experimenting with web services, and I created some
simple web services in C# and was able to install them with IIS and
create an equally simple C# client to consume them.
My next experiment was to use Python to consume these same web
services, and even though I am able to get Python to consume web
services from a variety of sources (Apache SOAP, Glue, AXIS), I cannot
get web services created with MS.NET to work. Actually,...
|
by: Socheat Sou |
last post by:
After a brief, but informative, discussion on Freenode's #zope
chatroom, I was advised to consult the gurus on c.l.p.
I'm working for a small company who is in desperate need to rewrite it's
15+ year old, flat-file, client-tracking database. The staff uses OSX,
while I administer the couple linux servers we have to run our website
and some internal sites. In our initial brainstorming session, we
decided to go with a Python backend...
|
by: bruce |
last post by:
hi...
i'm running rh8.0 with gnome.. i'm not sure of the version (it's whatever rh
shipped).
i've recently updated (or tried to update) python to the latest version.
when i try to run the 'Server Settings/Services' Icon within gnome, nothing
happens...
i tried to run the 'start services' command from a command line, and got the
|
by: Joseph Geretz |
last post by:
Up to this point, our application has been using Windows File Sharing to
transfer files to and from our application document repository. This
approach does not lend itself toward a secure environment and so we are in
the process of imposing a WebService gateway between our application client
and the repository.
(As a starting point, the WebService won't be a richly featured application
server; business rules are still implemented in the...
|
by: John Goodfellow |
last post by:
I'm trying to find a .NET-centric alternative to the Plone CMS package. For
those not familiar, Plone is an open source CMS built on the Zope
application server which is built on Python. I'm the developer, trying to
weasel out of learning the very large and complex Zope system. Criteria
would be:
1. low purchase cost, hundreds instead of thousands
2. geared towards medium-sized intranet development, rather than community
site...
| |
by: Anders K. Olsen |
last post by:
Hello group
I would like some advice on how to model my webservices.
Our application is made up of a number of independent modules that handle
different parts of the application logic. It is a client-server application,
where the server exposes some web services that the clients can use.
Each module is not completely independent but some of them share some common
logic. The common logic is concerns how to load TimeSeries objects.
|
by: Duncan Smith |
last post by:
Hello,
I find myself in the, for me, unusual (and at the moment unique)
position of having to write a web application. I have quite a lot of
existing Python code that will form part of the business logic. This
relies on 3rd party libraries (such as numpy) which would make porting
to e.g. IronPython difficult (I would imagine). I was thinking LAMP
(the P standing for Python, of course), particularly as I was originally
encouraged to go...
|
by: sandipm |
last post by:
Hi,
In my application, I have some configurable information which is used
by different processes. currently I have stored configration in a
conf.py file as name=value pairs, and I am importing conf.py file to
use this variable. it works well
import conf
print conf.SomeVariable
but if I need to change some configuration parameteres, it would need
|
by: Michael Palmer |
last post by:
As anyone knows, the state of Python GUI programming is a little
fractured at this time, with many toolkits, wrappers and meta-wrappers
dead and alive, with or without documentation.
I've come across two projects that have the appeal of striving for
simple, pythonic APIs: PyGUI and wax. The latter is a wrapper around
wxPython. It is lacking documentation but actually quite usable and
concise. The other, PyGUI, has an even nicer API and...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |