Skip to content

Commit 4a06b7c

Browse files
author
Richard Jones
committed
better demo port selection
1 parent e66495e commit 4a06b7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: setup.py,v 1.46 2003-04-10 04:33:02 richard Exp $
19+
# $Id: setup.py,v 1.47 2003-04-17 01:14:10 richard Exp $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
@@ -240,7 +240,8 @@ def install_demo():
240240

241241
# figure basic params for server
242242
hostname = socket.gethostname()
243-
port = 8080
243+
# pick a fairly odd, random port
244+
port = 8917
244245
while 1:
245246
print 'Trying to set up web server on port %d ...'%port,
246247
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

0 commit comments

Comments
 (0)