Changeset 13:9614506c40a9
- Timestamp:
- 05/18/05 03:11:02
(3 years ago)
- Author:
- Allan Saddi <allan@saddi.com>
- branch:
- default
- convert_revision:
- svn:46762da8-4eb7-0310-94e9-d918b60927c8/flup/trunk@1785
- Message:
Fix wsgi.multiprocess for scgi_fork. (Set to True.)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r12 |
r13 |
|
| | 1 | 2005-05-18 Allan Saddi <asaddi@ganymede.saddi.net> |
|---|
| | 2 | |
|---|
| | 3 | * Fix wsgi.multiprocess for scgi_fork. (Set to True.) |
|---|
| | 4 | |
|---|
| 1 | 5 | 2005-05-15 Allan Saddi <asaddi@ganymede.saddi.net> |
|---|
| 2 | 6 | |
|---|
| r8 |
r13 |
|
| 268 | 268 | requestClass = Request |
|---|
| 269 | 269 | |
|---|
| | 270 | # AFAIK, the current mod_scgi does not do load-balancing/fail-over. |
|---|
| | 271 | # So a single application deployment will only run in one process |
|---|
| | 272 | # at a time, on this server (when using a threaded server, of course). |
|---|
| | 273 | _multiprocess = False |
|---|
| | 274 | |
|---|
| 270 | 275 | def __init__(self, application, scriptName='', environ=None, |
|---|
| 271 | 276 | multithreaded=True, |
|---|
| … | … | |
| 341 | 346 | environ['wsgi.errors'] = sys.stderr |
|---|
| 342 | 347 | environ['wsgi.multithread'] = self.multithreaded |
|---|
| 343 | | # AFAIK, the current mod_scgi does not do load-balancing/fail-over. |
|---|
| 344 | | # So a single application deployment will only run in one process |
|---|
| 345 | | # at a time, on this server. |
|---|
| 346 | | environ['wsgi.multiprocess'] = False |
|---|
| | 348 | environ['wsgi.multiprocess'] = self._multiprocess |
|---|
| 347 | 349 | environ['wsgi.run_once'] = False |
|---|
| 348 | 350 | |
|---|
| r9 |
r13 |
|
| 73 | 73 | |
|---|
| 74 | 74 | class WSGIServer(BaseSCGIServer, PreforkServer): |
|---|
| | 75 | _multiprocess = True |
|---|
| | 76 | |
|---|
| 75 | 77 | """ |
|---|
| 76 | 78 | SCGI/WSGI server. For information about SCGI (Simple Common Gateway |
|---|