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

Why is it that I set the size of rcvbuf but the actual m_pRcvBuffer->capacity() size doesn't change it is always 25599 #2790

Closed
yuchengmao opened this issue Aug 31, 2023 · 8 comments
Labels
Type: Question Questions or things that require clarification
Milestone

Comments

@yuchengmao
Copy link

image
@yuchengmao yuchengmao added the Type: Question Questions or things that require clarification label Aug 31, 2023
@ethouris
Copy link
Collaborator

Do you check the result of srt_setsockopt/srt_setsockflag?

@maxsharabayko
Copy link
Collaborator

You probably want getAvailSize(). Capacity is capacity, it does not change.

@ethouris
Copy link
Collaborator

Ok, to clear things up about the terminology: "Capacity" is the total size of the memory allocated by the buffer, and it encloses the used and unused space. Used space in the buffer is "size" and unused - "avail".

@yuchengmao
Copy link
Author

I found that it seems to be limited by this parameter (SRTO_FC) to the rcvbuf max value

@yuchengmao
Copy link
Author

image

@yuchengmao
Copy link
Author

Since I set the latency very large, it took a long time to release the packets in the buffer, so the rcvbuf was not enough

@ethouris
Copy link
Collaborator

Latency doesn't influence the buffer capacity. If it too small in particular circumstances, it should be adjusted. Whether it is, it depends not only on latency, but also bitrate, for which there is no corresponding option in SRT.

@maxsharabayko
Copy link
Collaborator

Please refer to the Configuration Guidelines.
See also #700.

@maxsharabayko maxsharabayko closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
@maxsharabayko maxsharabayko added this to the Backlog milestone Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Questions or things that require clarification
Projects
None yet
Development

No branches or pull requests

3 participants