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

Add ability to set buffer size in OTP socket implementation #896

Closed
fadushin opened this issue Oct 26, 2023 · 1 comment
Closed

Add ability to set buffer size in OTP socket implementation #896

fadushin opened this issue Oct 26, 2023 · 1 comment
Assignees

Comments

@fadushin
Copy link
Collaborator

The OTP socket implementation currently has a 512 byte hard-worked buffer limit.

In the OTP socket api, the method to adjust the buffer size is via the socket:setopt/3 function. https://www.erlang.org/doc/man/socket#setopt-3

E.g.,

socket:setopt(Socket, {otp, recvbuf}, NewBufferSize).

This functionality needs to be implemented.

@fadushin fadushin self-assigned this Oct 26, 2023
bettio added a commit that referenced this issue Dec 6, 2023
Add support for setting rcvbuf buffer size on a socket

This PR allows users to set the buffer size on receive operations via the
`socket:setopt/3` function, using the `{otp, rcvbuf}` configuration option.

This PR addresses Issue #896

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).

SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
@fadushin
Copy link
Collaborator Author

Resolved in PR #907

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant