Malcolm
unread,Dec 14, 2009, 7:44:21 PM12/14/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cherrypy-users
Hi João,
I'm running Python 2.6.4 (32-bit) on Windows 7 Pro (64-bit) and
received the following error when testing your code:
QUOTE: socket.error: [Errno 10048] Only one usage of each socket
address (protocol/network address/port) is normally permitted
I added errno 10048 to your exception handler and your code works
great.
UPDATED SNIPPET:
except socket.error as e:
if e.errno in ( 98, 10048 ):
print 'Port %s is unavailable (%s)' % ( port, e.errno )
port = port+1
Thank you very much for your code - it was a big help!
Regards,
Malcolm