Changeset 75:aa983e43105e
- 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
| r72 |
r75 |
|
| | 1 | 2008-07-23 Allan Saddi <allan@saddi.com> |
|---|
| | 2 | |
|---|
| | 3 | * Add support for configuring UNIX domain sockets (for servers that |
|---|
| | 4 | support them) in the paste.server_factory implementations. Thanks |
|---|
| | 5 | to Dan Roberts for the code. |
|---|
| | 6 | |
|---|
| 1 | 7 | 2008-07-22 Allan Saddi <allan@saddi.com> |
|---|
| 2 | 8 | |
|---|
| r32 |
r75 |
|
| 4 | 4 | port = port or global_conf.get('port', 4000) |
|---|
| 5 | 5 | |
|---|
| 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)) |
|---|
| 7 | 11 | |
|---|
| 8 | 12 | def server(application): |
|---|