Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #70972

How does apache runs a application when a request comes in?

Date 2014-05-06 16:07 +0000
From Norah Jones <nh.jones01@gmail.com>
Subject How does apache runs a application when a request comes in?
Newsgroups comp.lang.python
Message-ID <mailman.9702.1399392458.18130.python-list@python.org> (permalink)

Show all headers | View raw


Hi, 

I have a python web application running on apache2 deployed with `mod_wsgi`. The application has a thread continuously running. This thread is a ZeroMQ thread and listening to a port in loop. The application is not maintaining session. Now if I open the browser and sends a request to the apache server the data is accepted for the first time. Now when second time I send the request It shows Internal server error. When I checked the error log file for traceback,  It shows the ZMQError:- The address already in use. 

Does apache reloads the application on each request sent from the  browser since so that the ZeroMQ thread is being created everytime and being assigned the port but since the port has already been assigned it shows error....

Thanks,
Norah Jones

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

How does apache runs a application when a request comes in? Norah Jones <nh.jones01@gmail.com> - 2014-05-06 16:07 +0000

csiph-web