Solution for: #4: Paster restart socket error
a potential bug in Paste
- root on January 22, 2009, 08:18 PM UTC
Try adding:
to /Library/Python/2.5/site-packages/Paste-1.7.1-py2.5.egg/paste/httpserver.py, line 360, immediately after this line:
This sets the REUSEADDR flag on the socket, which allows it to keep the original port it started out with.
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.