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: prevent buffer reuse in async mode for Put method #16

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

rhnvrm
Copy link
Member

@rhnvrm rhnvrm commented Nov 6, 2024

If the mode is async, we need to copy request Blob to prevent fasthttp from reusing the buffer since we are going to use the buffer in a separate goroutine beyond the scope of the current request.

If the mode is async, we need to copy request Blob to prevent
fasthttp from reusing the buffer since we are going to
use the buffer in a separate goroutine beyond the scope
of the current request.
@rhnvrm rhnvrm merged commit fd6956b into master Nov 14, 2024
6 checks passed
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.

1 participant