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

Rwnd p2 simple #226

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Rwnd p2 simple #226

merged 3 commits into from
Dec 19, 2024

Conversation

jthomas43
Copy link
Contributor

@jthomas43 jthomas43 commented Nov 20, 2024

Adds a stream callback get_read_buffer_size, and optional udx_stream_get_rwnd_max / udx_stream_set_rwnd_max functions.

This allows the user to report the size of their buffer to libudx, so that libudx can set the receive window (rwnd) to the number of bytes remaining in the buffer. To integrate the user must

  1. have a read buffer can grow up to some maximum size. this maximum may be configured once per-stream with udx_stream_set_rwnd_max, or a default can be queried with udx_stream_get_rwnd_max
  2. implement get_read_buffer_size to return the number of bytes in their read buffer.

@mafintosh mafintosh merged commit 8225ed0 into holepunchto:main Dec 19, 2024
3 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.

2 participants