Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Websocket Streaming Interface #2581

Merged
merged 9 commits into from
Jun 25, 2021
Merged

Conversation

wwitzel3
Copy link
Contributor

What this PR does / why we need it:
Replaces #2504 and #1905

Which issue(s) this PR fixes

mstergianis and others added 8 commits June 16, 2021 11:23
There was some incorrect error handling in my last commit. When fixing
that I noticed that I slightly changed the semantics of the websocket
read pump when I moved unmarshaling to be a client.Recieve
responsibility. So I introduced a new concept that a stream client can
return a fatal error, and read pump can react to that appropriately.
This paves the way for read pump to become a function owned by the
streaming client manager instead of a method on websocket client.

Signed-off-by: Michael Stergianis <[email protected]>
- change for loop semantics in (*StreamingConnectionManager).Run

Signed-off-by: Michael Stergianis <[email protected]>
Signed-off-by: Wayne Witzel III <[email protected]>
Allows library implementations of StreamClient and StreamClientFactory
to return fatal StreamErrors

Signed-off-by: Michael Stergianis <[email protected]>
Signed-off-by: Wayne Witzel III <[email protected]>
@wwitzel3
Copy link
Contributor Author

wwitzel3 commented Jun 22, 2021

I think this is now in its final form @MichaelStergianis @jamieklassen

I've rebased, made some minor refactors, and also ensured all of the Michael's recent changes in his branch have been added in as well.

@wwitzel3
Copy link
Contributor Author

@GuessWhoSamFoo could use a review on this.

Copy link
Contributor

@GuessWhoSamFoo GuessWhoSamFoo left a comment

Choose a reason for hiding this comment

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

Depending on merge order, this one or #2566 will need a rebase

@zoetian
Copy link
Contributor

zoetian commented Jun 24, 2021

Hey @GuessWhoSamFoo , is it possible to get this one in first please? =)
Some of our work is currently blocked by this MR and it would be really helpful if it could be merged.
Many many thanks!

@GuessWhoSamFoo
Copy link
Contributor

The other PR is a dependency update with regenerated mock files so it should not block (and trivial to rebase if we want both)

@wwitzel3 wwitzel3 merged commit 2edf598 into vmware-archive:master Jun 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: swap out octant's streaming (websockets) with another implementation
5 participants