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

Use the negotiated mtu for read requests #31

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Conversation

jneem
Copy link
Contributor

@jneem jneem commented Dec 14, 2023

This uses the negotiated mtu for read requests.

It also changes the truncation in handle_read_blob, which I think was off by one before (because we're working directly with the returned data, unlike in do_work_with_notification). Before this change, long (larger-than-mtu) reads were getting truncated at exactly two packets.

Copy link
Owner

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks! Nice find about handle_read_blob 👍

@bjoernQ bjoernQ merged commit 0406a5f into bjoernQ:main Dec 14, 2023
1 check 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.

2 participants