mirror of
https://github.com/vale981/jobmanager
synced 2025-03-04 17:31:39 -05:00
reuse address to fix [Errno 98]
This commit is contained in:
parent
d3c327f93d
commit
2e7d508bbd
2 changed files with 2 additions and 1 deletions
|
@ -1522,6 +1522,7 @@ class JobManager_Server(object):
|
||||||
def _check_bind(host, port):
|
def _check_bind(host, port):
|
||||||
try:
|
try:
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||||
|
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||||
s.bind((host, port))
|
s.bind((host, port))
|
||||||
except:
|
except:
|
||||||
log.critical("test bind to %s:%s failed", host, port)
|
log.critical("test bind to %s:%s failed", host, port)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "jobmanager"
|
name = "jobmanager"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
description = "Python job manager for parallel computing."
|
description = "Python job manager for parallel computing."
|
||||||
authors = ["Richard Hartmann <richard.hartmann@tu-dresden.de>", "Paul Müller"]
|
authors = ["Richard Hartmann <richard.hartmann@tu-dresden.de>", "Paul Müller"]
|
||||||
license = "BSD (3 clause)"
|
license = "BSD (3 clause)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue