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

@ttimonen's #369 #372

Merged
merged 4 commits into from
Apr 12, 2023
Merged

@ttimonen's #369 #372

merged 4 commits into from
Apr 12, 2023

Conversation

monde
Copy link
Collaborator

@monde monde commented Apr 12, 2023

Bringing in @ttimonen's work.
Closes #369

ttimonen and others added 4 commits April 5, 2023 22:52
This changes the doWithRetries to return a cleanup func to be called
once the response is read instead of taking it down prematurely.

This becomes an issue with large requests where there's a packet
boundary between received headers and rest of the body.
In particular, do check that we have the context available when reading
the response.
Previously we got partial results instead, and we were having this
happening silently. If we were lucky, the json parsing failed though.
@monde monde merged commit 44b659d into master Apr 12, 2023
@monde monde deleted the ttimonen_369 branch April 12, 2023 19:32
mdwn pushed a commit to gravitational/teleport that referenced this pull request Sep 29, 2023
Fixes unexpected EOF responses seen when the Okta service attempts to interact
with the Okta API. This only affects v13, as v14 and master are both running
v2.20.0 already.

okta/okta-sdk-golang#363 is an issue filed against
the Okta Go SDK where some API calls were seeing empty responses or unexpected
EOFs for larger responses. okta/okta-sdk-golang#369 was
submitted to fix this, and then was pulled in as part of
okta/okta-sdk-golang#372.
github-merge-queue bot pushed a commit to gravitational/teleport that referenced this pull request Sep 29, 2023
Fixes unexpected EOF responses seen when the Okta service attempts to interact
with the Okta API. This only affects v13, as v14 and master are both running
v2.20.0 already.

okta/okta-sdk-golang#363 is an issue filed against
the Okta Go SDK where some API calls were seeing empty responses or unexpected
EOFs for larger responses. okta/okta-sdk-golang#369 was
submitted to fix this, and then was pulled in as part of
okta/okta-sdk-golang#372.
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.

3 participants