#
04273e9f |
| 16-Jun-2023 |
Rashmica Gupta <rashmica@linux.ibm.com> |
transports: Resize socket send buffer if needed
This was originally added in openbmc/pldm to make the socket send buffer big enough to send a message if the message is longer than the current send b
transports: Resize socket send buffer if needed
This was originally added in openbmc/pldm to make the socket send buffer big enough to send a message if the message is longer than the current send buffer size.
When you call set_sock_opt with buffer size X, given that X is within a certain range, the send buffer is actually set to 2*X. get_sock_opt returns the 2*X value, not X. So add in some helper functions.
Change-Id: I8ded9357db4268cd264cf0ecfb80479223106c09 Signed-off-by: Rashmica Gupta <rashmica@linux.ibm.com>
show more ...
|