Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

web: let the socket reuse the bind address

  • Loading branch information...
commit a111873989bc09199d1daec1b2a11b01a0071e0a 1 parent 9d136e7
@billiob billiob authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  amsn2/ui/front_ends/web/bend.py
View
1  amsn2/ui/front_ends/web/bend.py
@@ -34,6 +34,7 @@ def __init__(self, core):
self._core = core
self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self._socket.setblocking(0)
+ self._socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self._socket.bind(("127.0.0.1", 8080))
self._socket.listen(1)
self._workers = []
Please sign in to comment.
Something went wrong with that request. Please try again.