Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2018

Show
Ignore:
Timestamp:
07/09/08 01:22:41
Author:
fumanchu
Message:

Almost fcgi support in tests.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/cherryd

    r2010 r2018  
    3737     
    3838    if fastcgi: 
    39         # turn off autoreload when using fastcgi 
    40         cherrypy.config.update({'autoreload.on': False}) 
     39        # Turn off autoreload when using fastcgi. 
     40        cherrypy.config.update({'engine.autoreload_on': False}) 
    4141         
    4242        cherrypy.server.unsubscribe() 
    4343         
    44         fastcgi_port = cherrypy.config.get('server.socket_port', 4000) 
    45         fastcgi_bindaddr = cherrypy.config.get('server.socket_host', '0.0.0.0') 
    46         bindAddress = (fastcgi_bindaddr, fastcgi_port) 
     44        sock_file = cherrypy.config.get('server.socket_file', None) 
     45        if sock_file: 
     46            bindAddress = sock_file 
     47        else: 
     48            fastcgi_port = cherrypy.config.get('server.socket_port', 4000) 
     49            fastcgi_bindaddr = cherrypy.config.get('server.socket_host', '0.0.0.0') 
     50            bindAddress = (fastcgi_bindaddr, fastcgi_port) 
    4751        f = servers.FlupFCGIServer(application=cherrypy.tree, bindAddress=bindAddress) 
    4852        s = servers.ServerAdapter(engine, httpserver=f, bind_addr=bindAddress) 
  • trunk/cherrypy/test/test.py

    r2003 r2018  
    9191                         'modpygw': "modpygw", 
    9292                         'modwsgi': "modwsgi", 
     93                         'modfcgid': "modfcgid", 
    9394                         } 
    9495    default_server = "wsgi" 
     
    333334                                           "http", self.interactive) 
    334335            h.use_wsgi = True 
     336        elif self.server == 'modfcgid': 
     337            from cherrypy.test import modfcgid 
     338            h = modfcgid.FCGITestHarness(self.tests, self.server, 
     339                                         self.protocol, self.port, 
     340                                         "http", self.interactive) 
    335341        else: 
    336342            h = TestHarness(self.tests, self.server, self.protocol, 

Hosted by WebFaction

Log in as guest/cpguest to create tickets