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

Fix endless Stream's reply waiting on vpp disconnect #77

Merged
merged 1 commit into from Oct 26, 2022

Conversation

bayrinat
Copy link
Contributor

Draining of underlaying channel makes waiting endless. Now stream uses timeout to prevent it.

Signed-off-by: Rinat Baygildin bayrinat@yandex-team.ru
Change-Id: I9a48bf06a2073cb3e6efbeb530c267bd40ec086b

#76

Draining of underlaying channel makes waiting endless.
Now stream uses timeout to prevent it.

Signed-off-by: Rinat Baygildin <bayrinat@yandex-team.ru>
Change-Id: I9a48bf06a2073cb3e6efbeb530c267bd40ec086b

FDio#76
@bayrinat
Copy link
Contributor Author

bayrinat commented Oct 21, 2022

https://gerrit.fd.io/r/c/govpp/+/36185 - the first attempt to fix it.

Receiving message from Stream is independent from the channel's receiving.
That's why we have to use timeout in recvReply as well. Otherwise, we will stuck on receive method while on vpp disconnecting.

@bayrinat
Copy link
Contributor Author

Gentle ping @ondrej-fabry to verify it.

@bayrinat
Copy link
Contributor Author

@ondrej-fabry review, plz :)

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.

None yet

2 participants