Changeset 75:aa983e43105e for flup

Show
Ignore:
Timestamp:
07/23/08 22:51:59 (1 month ago)
Author:
Allan Saddi <allan@saddi.com>
branch:
default
Message:

Add support for configuring UNIX domain sockets (for servers that
support them) in the paste.server_factory implementations.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • flup/server/paste_factory.py

    r32 r75  
    44    port = port or global_conf.get('port', 4000) 
    55 
    6     local_conf['bindAddress'] = (host, int(port)) 
     6    if 'socket' in local_conf: 
     7        local_conf['bindAddress'] = local_conf['socket'] 
     8        del local_conf['socket'] 
     9    else: 
     10        local_conf['bindAddress'] = (host, int(port)) 
    711     
    812    def server(application):