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

Changeset 1726

Show
Ignore:
Timestamp:
09/27/07 14:14:12
Author:
fumanchu
Message:

Use explicit IPv4 127.0.0.1 instead of localhost in benchmark.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/benchmark.py

    r1627 r1726  
    8181    'log.error.file': '', 
    8282    'environment': 'production', 
    83     'server.socket_host': 'localhost', 
     83    'server.socket_host': '127.0.0.1', 
    8484    'server.socket_port': 8080, 
    8585    'server.max_request_header_size': 0, 
     
    138138Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ 
    139139 
    140 Benchmarking localhost (be patient) 
     140Benchmarking 127.0.0.1 (be patient) 
    141141Completed 100 requests 
    142142Completed 200 requests 
     
    151151 
    152152Server Software:        CherryPy/3.1alpha 
    153 Server Hostname:        localhost 
     153Server Hostname:        127.0.0.1 
    154154Server Port:            8080 
    155155 
     
    210210        assert self.concurrency > 0 
    211211        assert self.requests > 0 
    212         return ("-k -n %s -c %s http://localhost:%s%s" % 
     212        return ("-k -n %s -c %s http://127.0.0.1:%s%s" % 
    213213                (self.requests, self.concurrency, port, self.path)) 
    214214     
     
    366366        def run(): 
    367367            port = cherrypy.server.socket_port 
    368             print ("You may now open http://localhost:%s%s/" % 
     368            print ("You may now open http://127.0.0.1:%s%s/" % 
    369369                   (port, SCRIPT_NAME)) 
    370370             

Hosted by WebFaction

Log in as guest/cpguest to create tickets