Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix bug in Trio's_read_exactly()#213

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gabor-boros merged 1 commit intorethinkdb:masterfrommehaase:trio_fix
Jun 15, 2020
Merged

Fix bug in Trio's_read_exactly()#213

gabor-boros merged 1 commit intorethinkdb:masterfrommehaase:trio_fix
Jun 15, 2020

Conversation

@mehaase
Copy link
Contributor

Reason for the change

The_read_exactly() method in the Trio driver sometimes fails on large responses, such as query results that contain lots of data.

Description

This method calls Trio'sreceive_some(n), which I found out can actually
return fewer thann bytes. This is only noticeable on large messages
(query results of around 80KB triggered the issue). The solution is to call
receive_some(...) in a loop untiln bytes has been received.

Code examples

n/a

Checklist

References

n/a

This method calls Trio's `receive_some(n)`, which I found out can actuallyreturn fewer than `n` bytes. This is only noticeable on large messages(query results of around 80KB triggered the issue). The solution is to call`receive_some(...)` in a loop until `n` bytes has been received.
@gabor-borosgabor-boros merged commit75c4afe intorethinkdb:masterJun 15, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gabor-borosgabor-borosgabor-boros approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@mehaase@gabor-boros

[8]ページ先頭

©2009-2025 Movatter.jp