Skip to content

Instantly share code, notes, and snippets.

@pydevd
Created June 13, 2017 15:04
Show Gist options
  • Save pydevd/6226f21d6a7102ea742fb59bcb75e4ca to your computer and use it in GitHub Desktop.
Save pydevd/6226f21d6a7102ea742fb59bcb75e4ca to your computer and use it in GitHub Desktop.
Pill from [Errno 98] Address already in use
# pill from [Errno 98] Address already in use
socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
socket.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER, struct.pack('ii', 1, 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment