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

outbound write throttling #366

Closed
wants to merge 1 commit into from
Closed

outbound write throttling #366

wants to merge 1 commit into from

Conversation

aricart
Copy link
Member

@aricart aricart commented Jul 16, 2020

when sending in a bench type of situation where buffers are large and loops
are tight, the buffers for the socket can be exhausted. Changed
the way that the outbound is serialized:

  • the client will try to send 16K buffer at most
  • if the write returns that it buffered outside of the kernel, the client won't send until the socket is drained

@aricart aricart marked this pull request as draft July 16, 2020 23:34
… loops

are tight, the libuv buffers for the socket can be exhausted. Changed
the way that the outbound is serialized:

- client will try to send 16K buffer at most
- if the write returns that it buffered outside of kernel, client won't send until socket is drained
@aricart aricart closed this Feb 8, 2021
@aricart aricart deleted the write-overflow branch October 4, 2021 14:07
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

Successfully merging this pull request may close these issues.

None yet

1 participant