Solution for: #4: Paster restart socket error

a potential bug in Paste

1
Try adding:

self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

to /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/httpserver.py, line 360, immediately after this line:
self.socket = socket.socket(self.address_family, self.socket_type)

This sets the REUSEADDR flag on the socket, which allows it to keep the original port it started out with.