Skip to content

Handle disconnected PVs - #200

Merged
AndreFavotto merged 2 commits into
mainfrom
handle-disconnected
Aug 22, 2026
Merged

Handle disconnected PVs#200
AndreFavotto merged 2 commits into
mainfrom
handle-disconnected

Conversation

@AndreFavotto

Copy link
Copy Markdown
Collaborator

Closes #194

So far, 2 major issues related to disconnection existed:

  • The WS did not emit messages on disconnection event - this caused the FE to never know if a PV is disconnected or just never received a new value.

    • Fix: created a new optional field "connected". WS sends it as true on first update, together with metadata (only once). On disconnection event, WS emits it as false.
  • Writing to disconnected or non-existent PVs was not properly handled in the WS, causing freezing of the whole session until timeout was reached.

    • Created a dedicated thread for writing process.

@AndreFavotto

Copy link
Copy Markdown
Collaborator Author

FYI: @wanglin86769

@AndreFavotto
AndreFavotto merged commit 9c9d9a1 into main Aug 22, 2026
12 checks passed
@AndreFavotto
AndreFavotto deleted the handle-disconnected branch August 22, 2026 11:13
@wanglin86769

Copy link
Copy Markdown
Contributor

@AndreFavotto Thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

epicsWS: Handle disconnected PVs

2 participants