-
Notifications
You must be signed in to change notification settings - Fork 247
adding TCP_NODELAY socket flag #33
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
Conversation
|
mmm is netinet/tcp.h not present in the build environment? |
|
It has to be there, otherwise error would be with not found include. Looks like Max issue. |
|
Max issue? |
|
Mac OSx issue. Sorry. |
|
Any ideas on what I can do to get this branch working regarding tests? |
|
In a link i sent you they made this: |
|
Good point. I didn't know it was a linux specific option. That sounds like a good way to go about it. |
…r referenced header is missing
|
TCP_NODELAY has to set on both client and server socket. |
|
I don't think this sets client & server - the change I've proposed does both |
|
@pgu-swir as you can see above we had issue with MAC OS and TCP_NODELAY. Which was solved here. Did you PR contains that too? |
|
I think because I've used IPPROTO_TCP directly and not SOL_TCP, this is defined as well on MacOS. I'm also ignoring the result of setsockopt because I don't think we want to fail if TCP_NODELAY cannot be set |
|
Hi @MichalPrincNXP i think this can be closed now. But we may want one python line which is in this PR |
Agree, could you please either update this PR or create a new one with the one python line that is acceptable? Thank you. |
…e-controller-driver-and-dev-kit-integration Gds4 1735 pressure controller driver and dev kit integration
I had noticed that the transaction rate I was achieving in ERPC was very low, around 20 transactions/sec.
After debugging the code and eliminating the code from being the source of the latency, I asked on SO what the problem could be and Nagle's algorithm was suggested as being a culprit. This makes sense as ERPC's header transmission is very small.
See the full legwork in the SO question here.
With this change my transaction rate went from ~20 to 2500+.