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: create Cipher instance in place, do not store it in ChannelOptions #969

Merged
merged 3 commits into from
Sep 28, 2023

Conversation

ttypic
Copy link
Contributor

@ttypic ttypic commented Sep 27, 2023

Before: Cipher instances was cached per ChannelOptions that probably increased performance a little bit, but it was causing ConcurrentModificationException.

Now: we create cipher instance during encryption/decryption process to avoid this.

see ably/ably-flutter#483

@github-actions github-actions bot temporarily deployed to staging/pull/969/features September 27, 2023 15:42 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/969/javadoc September 27, 2023 15:43 Inactive
…ons`

Cipher instances was cached per `ChannelOptions` that probably increased performance a little, but it was causing `ConcurrentModificationException`. Now we create cipher instance during encryption/decryption process to avoid this
@ttypic ttypic force-pushed the fix-ably-concurrent-encryption branch from 8858c56 to da5406f Compare September 27, 2023 15:49
@github-actions github-actions bot temporarily deployed to staging/pull/969/features September 27, 2023 15:49 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/969/javadoc September 27, 2023 15:50 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/969/features September 28, 2023 07:47 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/969/javadoc September 28, 2023 07:48 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/969/features September 28, 2023 08:24 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/969/javadoc September 28, 2023 08:24 Inactive
@ttypic ttypic force-pushed the fix-ably-concurrent-encryption branch from d4a9c09 to aad3380 Compare September 28, 2023 08:34
@github-actions github-actions bot temporarily deployed to staging/pull/969/features September 28, 2023 08:34 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/969/javadoc September 28, 2023 08:35 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants