Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadding TCP_NODELAY socket flag #33
Conversation
… latency
|
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
SASIDHARAN-dot
commented
Dec 18, 2019
|
TCP_NODELAY has to set on both client and server socket. |
mentaal commentedJun 20, 2018
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+.