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 stuck vaas request if websocket terminated #591

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

cavus700
Copy link
Member

@cavus700 cavus700 commented Sep 4, 2024

Currently when WebSocket request fails the sendRequest() go routine terminates without consequences and the request itself will never be closed.

@cavus700 cavus700 force-pushed the bugfix/stuck-go-sdk-on-error branch 3 times, most recently from e20cc10 to f0e2c7d Compare September 4, 2024 09:36
@@ -708,3 +734,14 @@ func (v *vaas) readWebSocket(termChan chan<- error) {
return
}
}

func (v *vaas) respondAllOpenRequests() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

failAllOpenRequests

@cavus700 cavus700 force-pushed the bugfix/stuck-go-sdk-on-error branch from f0e2c7d to b1f9ab1 Compare September 4, 2024 09:59
@pstadermann pstadermann merged commit 0f356b0 into main Sep 4, 2024
9 checks passed
@pstadermann pstadermann deleted the bugfix/stuck-go-sdk-on-error branch September 4, 2024 10:02
@pstadermann pstadermann restored the bugfix/stuck-go-sdk-on-error branch September 4, 2024 10:02
@pstadermann pstadermann deleted the bugfix/stuck-go-sdk-on-error branch September 4, 2024 10:03
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.

2 participants