Does ZBUS keep connections alive internally? Will it restart them if they exit? #1034
Replies: 1 comment 3 replies
-
No. You'll get an error immediately (e.g from reading a
That would depend entirely on the error. It's super hard to answer in a generic way.
Where do you see this doc comment? I can't find it anywhere in our repo's log. Anyway, the error sounds like not something you can just retry. The socket wouldn't magically start to exist (or have the needed permission) a few microseconds or seconds later. Its |
Beta Was this translation helpful? Give feedback.
-
Hi ZBUS Team,
I got asked about retries on a PR comment and realized I didn't know the answer so I'd better ask :)
If the connection gets terminated for whatever reason, will the crate restart it?
Bonus question:
Are any of the ZBUS errors returned during the set up process retriable? I think
.build()
might return retriable errors based on this comment:/// Fails if the journald socket couldn't be opened.
However, I'm not sure which enum variants this function returns.
Thanks so much for your help!
Beta Was this translation helpful? Give feedback.
All reactions