~ubuntu-branches/ubuntu/natty/flup/natty

« back to all changes in this revision

Viewing changes to flup/server/ajp_fork.py

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2007-09-12 20:22:04 UTC
  • mfrom: (1.2.1 upstream) (4 gutsy)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20070912202204-fg63etr9vzaf8hea
* New upstream release
* http://www.saddi.com/software/news/archives/58-flup-1.0-released.html
* Added a note in the description that people should probably start thinking
  of moving to modwsgi.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23
23
# SUCH DAMAGE.
24
24
#
25
 
# $Id: ajp_fork.py 1839 2006-02-24 00:16:10Z asaddi $
 
25
# $Id: ajp_fork.py 2188 2006-12-05 22:11:45Z asaddi $
26
26
 
27
27
"""
28
28
ajp - an AJP 1.3/WSGI gateway.
77
77
"""
78
78
 
79
79
__author__ = 'Allan Saddi <allan@saddi.com>'
80
 
__version__ = '$Revision: 1839 $'
 
80
__version__ = '$Revision: 2188 $'
81
81
 
82
82
import socket
83
83
import logging
84
84
 
85
 
from ajp_base import BaseAJPServer, Connection
86
 
from preforkserver import PreforkServer
 
85
from flup.server.ajp_base import BaseAJPServer, Connection
 
86
from flup.server.preforkserver import PreforkServer
87
87
 
88
88
__all__ = ['WSGIServer']
89
89
 
191
191
        yield '</table>\n' \
192
192
              '</body></html>\n'
193
193
 
 
194
    from wsgiref import validate
 
195
    test_app = validate.validator(test_app)
194
196
    # Explicitly set bindAddress to *:8009 for testing.
195
197
    WSGIServer(test_app,
196
198
               bindAddress=('', 8009), allowedServers=None,