Skip to content

EMA C++: Provider configuration parameter SysSendBufSize is applied as number of bytes, not KB #137

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

Closed
miczuc opened this issue Apr 2, 2020 · 2 comments

Comments

@miczuc
Copy link

miczuc commented Apr 2, 2020

Hello.

I was wondering about the values shown in the toString() method of ChannelInformation, for
parameters "system send buffer size" and "system receive buffer size".
I made a test and set parameter "<SysSendBufSize>" in the "<Channel>" section for my test provider.
I noticed, that the value is passed as number of bytes to the call setsockopt(.. SO_SNDBUF ..).
(On a Linux system you observe different values afterwards in the ChannelInformation,
because setsockopt(.. SO_SNDBUF ..) internally doubles the value and also clips it to a limited range, see man page.).
However, the configured value is obviously applied as number of bytes, and not kilo bytes, as stated in the configuration guide:
"Specifies the size (in KB) of the system's send buffer for this channel."

So there is a contradiction, Regards, Michael Zuck

@IProkopenkoRef
Copy link
Contributor

Hi Michael
Thank you for noticing this inconsistency. This should read 'in Bytes'. Issue will be addressed in documentation

@vlevendel
Copy link
Contributor

ConfigGuides have been updated.

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

No branches or pull requests

3 participants