dask / dask/distributed

Timed out during handshake while connecting to tcp://localhost:9002 after 10 s

Open
#4,708 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
778
Avg merge
2h 50m
Merged PRs (30d)
3

Description

The local client "local=tcp://127.0.0.1:65441" CAN connect to "remote=tcp://localhost:9002", but failed during handshake later. my knowledge is limited here. Please advise how can I fix this?

I located the place raising error in comm/core.py:
```
try:
# This would be better, but connections leak if worker is closed quickly
# write, handshake = await asyncio.gather(comm.write(local_info), comm.read())
handshake = await asyncio.wait_for(comm.read(), time_left())
await asyncio.wait_for(comm.write(local_info), time_left())
except Exception as exc:
with suppress(Exception):
await comm.close()
raise IOError(
f"Timed out during handshake while connecting to {addr} after {timeout} s"
) from exc
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.