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

user callbacks for handling interrupt signal while waiting on receive #262

Open
parkrish opened this issue Apr 21, 2017 · 0 comments
Open

Comments

@parkrish
Copy link

In nc_session_receive, on interrupt we break the poll and then continue.
However, the interruption from the client application would have come as a result of user choosing to break the receive may be due to a long wait. In this case it may not be good to continue.

It will be good if an API is present to control a variable by user application, which can be used here and choose to continue or not depending on the variable value.

} else if (((status == -1) && (errno == EINTR))
#ifndef DISABLE_LIBSSH
|| (status == SSH_AGAIN)
#endif
) {
/* poll was interrupted */
continue;

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

No branches or pull requests

1 participant