Skip to content

CP-47509: Revisited the setting of response headers to avoid errors when multiple threads use the same session object #5990

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

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

kc284
Copy link
Contributor

@kc284 kc284 commented Sep 13, 2024

No description provided.

@kc284 kc284 self-assigned this Sep 13, 2024
edwintorok
edwintorok previously approved these changes Sep 13, 2024
@kc284
Copy link
Contributor Author

kc284 commented Sep 13, 2024

Forced-pushed because I had forgotten to sign the commit.

contificate
contificate previously approved these changes Sep 13, 2024
…hen multiple threads use the same session object.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@cloud.com>
Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
@danilo-delbusso danilo-delbusso dismissed stale reviews from contificate and edwintorok September 16, 2024 07:35

stale

@danilo-delbusso danilo-delbusso changed the title CP-47509: Revisited the setting of response headers to avoid errors w… CP-47509: Revisited the setting of response headers to avoid errors when multiple threads use the same session object Sep 16, 2024
Copy link
Contributor

@edwintorok edwintorok left a comment

Choose a reason for hiding this comment

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

This improves backwards compatibility with old code that was using this SDK.
If the code wants to access the new response headers field it'll need to create one object per thread, however code that doesn't access those headers should keep working without raising exceptions (the last write to the field would win).

@edwintorok edwintorok merged commit 7ae0080 into xapi-project:master Sep 16, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants