Skip to content
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

Support returning an error message from Image to Publication #898

Open
mjpt777 opened this issue Apr 4, 2020 · 1 comment
Open

Support returning an error message from Image to Publication #898

mjpt777 opened this issue Apr 4, 2020 · 1 comment

Comments

@mjpt777
Copy link
Contributor

mjpt777 commented Apr 4, 2020

When two-way, aka duplex, communication is being established and the return channel is invalid it would be useful to return an error somehow to the initiator. An example would be an invalid control response channel for an archive client. A solution would be if the receiving image from the connection initiation could return an error message to the source publication. The API could look something like the following.

void Image.returnError(String) would send the error back via the control channel used for status messages and NAKs to the sender.

The sender could then apply this error to the source publication and close it. The publisher could detect the unexpected close and then call String Publication.errorMessage() to get the message.

The error message could be restricted to a max length of an MTU payload. To cope with loss the error could be sent on an interval like status messages until acknowledged by the sender or timeout when heartbeats are no longer received.

@HKMANOJ
Copy link

HKMANOJ commented Aug 23, 2024

can i work on this issue.

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

No branches or pull requests

2 participants