Skip to content

Commit

Permalink
Re-factoring to fully disentangle data and app drops
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Feb 1, 2023
1 parent f6f1f80 commit 7c29232
Show file tree
Hide file tree
Showing 42 changed files with 2,176 additions and 1,663 deletions.
14 changes: 7 additions & 7 deletions daliuge-common/dlg/common/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ def check_port(host, port, timeout=0, checking_open=True, return_socket=False):
s.connect((host, port))
if not return_socket:
s.close()
except (OSError, socket.error):
if socket.error:
s.close()
raise
elif OSError:
logger.error("Unable to connect to %s:%s", host, port)
return not checking_open
except socket.error as e:
s.close()
raise
except OSError as e:
# logger.debug("Error opening connection!!")
logger.error("Unable to connect to %s:%s", host, port)
return not checking_open

# Success if we were checking for an open port!
if checking_open:
Expand Down

0 comments on commit 7c29232

Please sign in to comment.