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 query execution lock-up for large frames. #4

Merged
merged 1 commit into from
Jan 30, 2021

Conversation

a1ph
Copy link

@a1ph a1ph commented Jan 29, 2021

The send_frame function did use write method to send out
frame data. The method actually writes just a portion of the data provided
(usually first 16K). The rest was not written and got lost.
That caused Cassandra node peer send no reply waiting for more frame data,
which in turn led to send_frame hanging infinitely.

The write_all method has to be used instead.

The `send_frame` function did use `write` method to send out
frame data. The method actually writes just a portion of the data provided
(usually first 16K). The rest was not written and got lost.
That caused Cassandra node peer send no reply waiting for more frame data,
which in turn led to `send_frame` hanging infinitely.

The `write_all` method has to be used instead.
@krojew krojew merged commit f701145 into krojew:master Jan 30, 2021
@krojew
Copy link
Owner

krojew commented Jan 30, 2021

Thanks!

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.

2 participants