Skip to content

Commit

Permalink
Errors when setting TCP timeouts log as error (dask#7161)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter authored and gjoseph92 committed Oct 31, 2022
1 parent be4e25f commit 54c82bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distributed/comm/tcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def set_tcp_timeout(comm):
logger.debug("Setting TCP user timeout: %d ms", timeout * 1000)
TCP_USER_TIMEOUT = 18 # since Linux 2.6.37
sock.setsockopt(socket.SOL_TCP, TCP_USER_TIMEOUT, timeout * 1000)
except OSError as e:
logger.warning("Could not set timeout on TCP stream: %s", e)
except OSError:
logger.exception("Could not set timeout on TCP stream.")


def get_stream_address(comm):
Expand Down

0 comments on commit 54c82bd

Please sign in to comment.