reuse address to fix [Errno 98]

This commit is contained in:
Valentin Boettcher 2022-01-10 15:18:16 +01:00
parent d3c327f93d
commit 2e7d508bbd
2 changed files with 2 additions and 1 deletions

View file

@ -1522,6 +1522,7 @@ class JobManager_Server(object):
def _check_bind(host, port):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind((host, port))
except:
log.critical("test bind to %s:%s failed", host, port)

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "jobmanager"
version = "0.3.0"
version = "0.3.1"
description = "Python job manager for parallel computing."
authors = ["Richard Hartmann <richard.hartmann@tu-dresden.de>", "Paul Müller"]
license = "BSD (3 clause)"