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

Feed memoryview to writelines() #715

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

fantix
Copy link
Member

@fantix fantix commented Mar 9, 2021

This fixes an issue in 0.22.0 where we passed WriteBuffer to writelines by mistake, which leads to an error under SSL and uvloop - the implementation that calls len() on each line of writelines().

Fixes: #700

This fixes an issue in 0.22.0 where we passed WriteBuffer to writelines
by mistake, which leads to an error under SSL and uvloop - the
implementation that calls len() on each line of writelines().

Fixes: MagicStack#700
@fantix fantix requested a review from elprans March 9, 2021 05:03
@fantix fantix marked this pull request as ready for review March 9, 2021 05:59
@elprans elprans merged commit 359a34c into MagicStack:master Mar 9, 2021
@fantix fantix deleted the t700-writebuffer-len branch March 9, 2021 17:47
@elprans elprans mentioned this pull request May 17, 2021
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.

0.22.0 - object of type 'asyncpg.pgproto.pgproto.WriteBuffer' has no len()
2 participants