-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken pipe error seen in client (cli) when backend restarts and CLICON_SOCK is recreated #312
Comments
There are some complexities here. |
backend has restarted and prior to that cli had some candidate changes. |
Being robust against pipe error is one thing and should be done. This is relatively new behavior and is a bug that should be fixed. I therefore add the Bug label now.
Notifying: In the case the backend quits in a controlled way, yes , but it could also crash or in some other way be gone (eg the unix socket file is removed). But what do you want the CLI to do in case it gets a notification that the backend has died / restarted? Especially in the case that it has candidate changes? |
* Note that edits to the candidate database or locks will be lost * To force the CLI to exit if backend restarts, undef `PROTO_RESTART_RECONNECT` * This is an effect of the fix of [Broken pipe error seen in client (cli) when backend restarts and CLICON_SOCK is recreated](#312), the CLI behavior on backend restart is changed. * Added `eof` parameter to `clicon_rpc()` and `clicon_rpc1()` and error handling modified
Patch commit as follows:
Please verify |
step 1 : login to cli and execute any command (do not exit out of cli)
step 2. restart backend process in separate terminal
step 3: once server socket is recreated , go to the previous active cli session and execute any command
Broken pipe error is seen for the first time
The text was updated successfully, but these errors were encountered: