crossbario / crossbario/autobahn-python

Should not try to reconnect if unix socket doesn't exist

Open
#1,534 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement websocket
Dominant language
Python
Stars
2.5k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

If a new connection is established to the router using UDS and due to some reason the router is stopped, autobahn uses the same reconnect mechanism that it uses for TCP based transports.

IMO we could avoid doing the unneeded retry attempts if the UDS path doesn't exist. Having that feature would also mean that local clients can connect to the router instantly as soon as the UDS becomes available. (or at least on the next try if router workers take some time to fully start)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Autobahn's Unix-domain-socket transport and its reconnect handling. Check the behavior when the router stops and the UDS path is absent, then verify that reconnect attempts wait for the socket to become available instead of repeatedly retrying while it does not exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.