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


Groups > comp.lang.python > #70972 > unrolled thread

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

Started byNorah Jones <nh.jones01@gmail.com>
First post2014-05-06 16:07 +0000
Last post2014-05-06 16:07 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#70972 — How does apache runs a application when a request comes in?

FromNorah Jones <nh.jones01@gmail.com>
Date2014-05-06 16:07 +0000
SubjectHow does apache runs a application when a request comes in?
Message-ID<mailman.9702.1399392458.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web